First-class user-level threads
- 1 September 1991
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGOPS Operating Systems Review
- Vol. 25 (5) , 110-121
- https://doi.org/10.1145/121133.344329
Abstract
It is often desirable, for reasons of clarity, portability, and efficiency, to write parallel programs in which the number of processes is independent of the number of available processors. Several modern operating systems support more than one process in an address space, but the overhead of creating and synchronizing kernel processes can be high. Many runtime environments implement lightweight processes (threads) in user space, but this approach usually results in second-class status for threads, making it difficult or impossible to perform scheduling operations at appropriate times (e.g. when the current thread blocks in the kernel). In addition, a lack of common assumptions may also make it difficult for parallel programs or library routines that use dissimilar thread packages to communicate with each other, or to synchronize access to shared data.We describe a set of kernel mechanisms and conventions designed to accord first-class status to user-level threads, allowing them to be used in any reasonable way that traditional kernel-provided processes can be used, while leaving the details of their implementation to user-level code. The key features of our approach are (1) shared memory for asynchronous communication between the kernel and the user, (2) software interrupts for events that might require action on the part of a user-level scheduler, and (3) a scheduler interface convention that facilitates interactions in user space between dissimilar kinds of threads. We have incorporated these mechanisms in the Psyche parallel operating system, and have used them to implement several different kinds of user-level threads. We argue for our approach in terms of both flexibility and performance.Keywords
This publication has 13 references indexed in Scilit:
- Scheduler activationsPublished by Association for Computing Machinery (ACM) ,1991
- The Lynx distributed programming language: Motivation, design and experienceComputer Languages, 1991
- Scheduling support for concurrency and parallelism in the Mach operating systemComputer, 1990
- Multi-model parallel programming in psychePublished by Association for Computing Machinery (ACM) ,1990
- Firefly: a multiprocessor workstationIEEE Transactions on Computers, 1988
- Multilanguage parallel programming of heterogeneous machinesIEEE Transactions on Computers, 1988
- An open enviornment for building parallel programming systemsPublished by Association for Computing Machinery (ACM) ,1988
- MULTILISP: a language for concurrent symbolic computationACM Transactions on Programming Languages and Systems, 1985
- Experience with processes and monitors in MesaCommunications of the ACM, 1980
- Distributed processesCommunications of the ACM, 1978