| Course Instructor | Dr. C.-K. Shene |
| Office | Dow 204 |
| Phone | (906) 487-3392 |
| shene@mtu.edu |
How to compile your program
Fundamentals
Creating threads
Terminating threads
Waiting for a thread's completion
Global variables
Examples
Running two independent threads
Running many threads that share a global
Yielding the control of execution
Semaphores
Creating and initializing semaphores
Semaphore wait
Semaphore signal
Examples
Protecting a shared counter
Alternating execution
Bounded buffer
Mutex and condition variables
Mutual exclusion locks
An example
Simulating a monitor
Condition variables
Examples
Bounded buffer - revisited
Bridge crossing
Mailboxes (not a Solaris feature)
Mailboxes
Example
Alternating execution - revisited