SunOS multi-thread architecture

We describe a model for multiple threads of control within a single UNIX process. The main goals are to provide extremely lightweight threads and to rationalize and extend the UNIX Application Programming Interface for a multi-threaded environment. The threads are intended to be sufficiently lightweight so that there can be thousands present and that synchronization and context switching can be accomplished rapidly without entering the kernel. These goals are achieved by providing lightweight user-level threads that are multiplexed on top of kernel-supported threads of control. This architecture allows the programmer to separate logical (program) concurrency from the required real concurrency, which is relatively costly, and to control both within a single programming model.

The introduction to a 1991 USENIX paper about SunOS’ multithread architecture. Just the kind of light reading material for an Autumn weekend.


  1. 2023-10-01 2:27 am
    • 2023-10-01 2:28 am
    • 2023-10-01 5:09 am