McMaster University
SFWR ENG 3SH3
Problem 1: True or False (15 Points - 5mins) T F 1- Process switching has less overhead than mode switching. 2- The main memory is volatile. 3- Multiprogramming can only occur if the system has multiple processors. 4- Busy waiting wastes system resources 5- Monitors can be implemented using semaphores Problem 2: Multiple Choice: Choose all
...[Show More]
Problem 1: True or False (15 Points - 5mins) T F 1- Process switching has less overhead than mode switching. 2- The main memory is volatile. 3- Multiprogramming can only occur if the system has multiple processors. 4- Busy waiting wastes system resources 5- Monitors can be implemented using semaphores Problem 2: Multiple Choice: Choose all that applies (15 Points - 5mins) 1- Two important design issues for cache memory are ____. a. speed and volatility b. size and replacement policy c. power consumption and reusability d. size and access privileges 2- A message passing model is ____. a. easier to implement than a shared memory model for inter-computer communication b. is faster than the shared memory model c. a network protocol and does not apply to operating systems d. is only useful for small simple operating systems 3- Which is not able to solve the race condition? a. Test and Set Lock b. Shared memory c. Semaphore d. Monitor 4- Before a context switch between two threads in the same process an OS needs to save a. Program counter (PC) b. CPU registers c. Stack pointer (SP) d. All of the above
[Show Less]