CSC 7103 20090901

CSC 7103 20090901 - 3 & 4 can be executed...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC 7103 9/1/2009 Page 1 of 1 Processes and Threads The main problem with threads is context switching and managing resource sharing during context switches. Synchronous Process Graphs DAG on page 18 of notes Starts with fork. Before next two start, the first terminates. Program ends when the last of the lower two process ends. The longest path gives us the total execution time.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3 & 4 can be executed simultaneously because they do not communicate. 2 & 3 join at 5 (and cause a synchronization) where 5 starts. This is the fork/join construct. The cobegin/coend construct. Code begin cobegin/coend executes simultaneously Assignment 1 is due in 2 weeks (9/15). Assignment 2 is due in 4 weeks (9/29)....
View Full Document

Ask a homework question - tutors are online