Spring 2003

Spring 2003 - Spring 2003 Final Exam Name: _ Question T/F...

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

View Full Document Right Arrow Icon
Spring 2003 Final Exam Name: ____________________________________________ Question Max Grade T/F 20pts 1-7 30 pts 8. 10 pts. 9. 10 pts. 10. 10pts. 11. 10pts. 12. 10pts. Total: 100pts. Part 1. Answer True/False (T/F) (1 point each) ____ Most of the CPU time is spent in user mode. ____ a.out is an executable file format used in early versions of Windows. ____ The backing-store of the Text segment is swap space. ____ The stack of one thread could potentially be modified by another thread. ____ Premature frees are a serious problem in short lived programs. ____ A page size has to be a power of 2. ____ The page table register is always updated during a context switch. ____ By default, when a thread calls mutex_lock for the same lock twice, the second mutex_lock call will be ignored. ____ All pages in physical memory that are replaced are written back to the disk. ____ The call realloc( NULL, 100) will cause a SEGV. ____ calloc( 8, 1 ) allocates 8 bytes initialized with 1s. ____ BEST FIT is faster than FIRST FIT. ____ Copy on write is used during fork(). ____ An object returned by malloc could have an address like 0x100280. ____ The order of mutex_unlock()'s could lead to deadlocks. ____ Most processes in a system are in wait state. ____ Non-accessed pages are prefered for replacement instead of modified pages. ____ A free list that has two blocks of 20 and 80 bytes has a fragmentation of 80%. ____ A call to fork() by a process that has two POSIX threads will create a child process with two threads.
Background image of page 1

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

View Full DocumentRight Arrow Icon
____ During starvation a thread waits for a resource or mutex lock that may never be available. Part 2. Short Questions 1. (4 pts) Enumerate the steps of the life cycle of a C program as covered in class. 2. (4 pts) A parent process P1 calls fork() and creates a child process P2. Explain
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.

Page1 / 11

Spring 2003 - Spring 2003 Final Exam Name: _ Question T/F...

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