Midterm Spring 2005 - Midterm Spring 2005 Name:_ _ Question...

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

View Full Document Right Arrow Icon
Midterm Spring 2005 Name:_______________________________________________________________ _ Question Max. Current True/False 10 pts. Short Questions 1-5 15 pts. Short Questions 5-10 15 pts. 11, 10 pts. 12. 10 pts. 13. 15 pts. 14. 15 pts. 15. 10 pts Total:
Background image of page 1

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

View Full DocumentRight Arrow Icon
Answer True/False (T/F) (1 point each) ____ The threads in a process share the same stack. ____ The maximum number of processes in running state is determined at configuration time. ____ A short quantum will benefit CPU-intensive applications ____ Most of the CPU time is spent in user mode. ____ The function strcpy(a,b) will allocate strlen(b)+1 bytes and copy the string from b to a. ____ In pthreads, fork() will only create one thread in the child process. ____ The arguments in a system call could be checked in user mode instead of kernel mode before the system call is performed. ____ It is necessary more than one mutex_lock to create a deadlock. ____ It is possible to modify the interrupt vector in user space. ____ Shared libraries run in user mode Part 2. Short questions. 1. (3 pts) Explaing "aging" in process scheduling. 2. (3 pts.) Explain how the quantum length can affect the priority of a processes in modern operating systems and how this is going to improve the execution of the applications. 3. (3 pts.) a) Write the code for spinlock/unlock? b) What problems we may encounter if we remove the thread_yield() instruction? 4. (3 pts.) Enumerate the checks that the kernel does during the system call
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue University-West Lafayette.

Page1 / 9

Midterm Spring 2005 - Midterm Spring 2005 Name:_ _ Question...

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

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