hw4 - 4003-440 and 4003-713 Operating SystemsHomework #4Due...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 2

hw4 - 4003-440 and 4003-713 Operating SystemsHomework #4Due...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online