Spring 2005

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

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

View Full Document Right Arrow Icon
Spring 2005 Final Exam Name: ____________________________________________ Question Max Grade T/F 10pts 1-10 40 pts 11. 10 pts. 12. 10 pts. 13. 15pts. 14. 15pts. Total: 100pts.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Part 1. Answer True/False (T/F) (1 point each) ____ The last step in a fage fault is to retry the offending instruction. ____ COFF is an executable file format used in in Windows. ____ The backing-store of the Stack is swap space. ____ TLBs speed up the translation from virtual to physical addresses. . ____ Best-Fit leads to more fragmentation than first-fit. ____ The page-table register is updated every time there is a context switch from one thread to another. ____ Calling mutex_unlock in an arbitrary order may lead to deadlocks. ____ truss is a UNIX command to show the number of users in the system. ____ The file offset pased to mmap should be a multiple of a page size. ____ mmap() for a shared memory section returns the same address for each caller process. Part 2. Short Questions 1. (4 pts) Explain step by step how copy-on-write works in fork(). . 2. (4 pts) Explain why programs use a malloc library instead of calling sbrk/mmap/unmap directly. 3. (4 pts) Explain what is "locality of reference".
Background image of page 2
4. (4 pts) Explain how you could make your malloc/free implementation in lab7 tolerant to double free's. 5. (4 pts) Explain how VM memory speeds up the allocation of zero-initialized memory for stack or heap. 6. (4 pts) Explain what is internal and external fragmentation.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

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

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

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