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
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
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.