March 2003
Intermediate to advanced
912 pages
27h 17m
English
In 1968 Edsger Dijkstra published a paper on the design of a small but carefully structured operating system called THE, which is described in Section 11.2. The design was based on a small, static number of concurrent processes which synchronized with each other and with the hardware by means of a mechanism called a semaphore.
A semaphore is an object with operations semSignal () and semWait (). The attributes of a semaphore are typically an integer and a queue (Figure 10.9). The definitions of the semaphore operations are as follows:
| semWait () | If the value of the semaphore's integer is greater than zero then decrement it and allow the process to continue, else suspend the process (noting that it is blocked on this semaphore). ... |
Read now
Unlock full access