CSCC69: Operating Systems. Assignment 1 Some of the slides were borrowed from csc369 course, U of T, St George. Monitors. Locks Provide mutual exclusion 2 operations: acquire() and release( ) Semaphores Generalize locks with an integer count variable and a thread queue
CSCC69: Operating Systems
Some of the slides were borrowed from csc369 course, U of T, St George
thread_join suspends the execution of the calling thread until the thread identified by pid terminates by calling thread_exit
_exit - terminate process
Standard C Library (libc, -lc)
Cause the current process to exit. The exit code exitcode is reported back to other process(es) via the waitpid() call. The process id of the exiting process should not be reused until all processes interested in collecting the exit code with waitpid have done so. (What "interested" means is intentionally left vague; you should design this.)
_exit does not return.