SYSC 3303 Study Guide - Vending Machine, Segmentation Fault, Trivial File Transfer Protocol

78 views6 pages

Document Summary

Given the following diagram: identify each part (i. e. all the rectangles and ovals and their contents, as well as the dark shape near the left) and explain the current situation. In the upper left is a rectangle containing t1, representing thread t1. (similarly the other rectangles, represent threads t2 through t5. ) [2 marks: next to t1 is a lock and next to that is a rectangle representing object object1. This indicates that t1 currently has the object lock for object1. [2 marks: below and to the left of object1 is an oval representing the blocked set of threads waiting for the lock on object1. [2 marks: below and to the right of object1 is an oval containing the wait set of threads waiting to be notified by thread(s) with object1"s lock. [2 marks: the current situation is that t1 has object1"s lock. Threads t2 and t3 are waiting for the lock. Threads t4 and t5 are waiting to be notified.