This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 4003-440 and 4003-713 Operating SystemsHomework #4Due January 15, 2007Name: __________TJ Wasik______________________Section: ____01____________________1. The program shown in Figure 4.11 of your textbook (page 148) uses the Pthreads API. What would be output from the program at LINE C and LINE P? Explain your answer (just stating that you ran the program and that was what was output is not acceptable you must explain why the program produced the output, in terms of threads).The output at line C is 5 because it prints when the pid is 0 the value of 'value' is that of the child, or second thread created, and the output at line P is 0 because that is the output of the first original parent thread.2. Consider a multiprocessor system and a multithreaded program written using the many-to-many threading model. Let the number of user-level threads in the program be more than the number of processors in the system. Discuss the performance implications of the following scenarios:a. The number of kernel threads allocated to the program is less than the number of a....
View Full Document
This note was uploaded on 04/11/2008 for the course GCCIS 440 taught by Professor Unknown during the Winter '06 term at RIT.
- Winter '06