Docsity

Georgia Tech CS 3210 Exam 2: Operating Systems Topics and Questions, Exams of Operating Systems

Toggle sidebar
bg1
NAME_______________________________________________
EXAM 2 CS 3210 Design of Operating Systems
College of Computing, Georgia Tech Hutto Spring 2003
This exam is closed book. You have 90 minutes. There are 10 questions worth 10 points each for a
total of 100 points. Spend about 9 minutes on each question. Partial credit is possible. All questions
have relatively short answers (2-3 well chosen sentences). Write legibly! If you have questions, raise
your hand. Good luck!
Exam 2 – topics
Process Address Space (ch 8) – 2 questions
Signals (ch 10) – 2 questions
Process Scheduling (ch 11) – 1 question
Virtual Filesystem (ch 12) – 2 questions
Managing I/O Devices (ch 13) – 2 questions
Disk Caches (ch 14) – 1 question
1 / 11
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Georgia Tech CS 3210 Exam 2: Operating Systems Topics and Questions and more Exams Operating Systems in PDF only on Docsity!

NAME_______________________________________________

EXAM 2  CS 3210 Design of Operating Systems

College of Computing, Georgia Tech  Hutto  Spring 2003

This exam is closed book. You have 90 minutes. There are 10 questions worth 10 points each for a total of 100 points. Spend about 9 minutes on each question. Partial credit is possible. All questions have relatively short answers (2-3 well chosen sentences). Write legibly! If you have questions, raise your hand. Good luck!

Exam 2 – topics

 Process Address Space (ch 8) – 2 questions

 Signals (ch 10) – 2 questions

 Process Scheduling (ch 11) – 1 question

 Virtual Filesystem (ch 12) – 2 questions

 Managing I/O Devices (ch 13) – 2 questions

 Disk Caches (ch 14) – 1 question

Process Address Space

  1. Two questions about address space “mapping” in Linux: a) What’s the difference between allocating memory and mapping a portion of the address space using mmap()? b) What’s the difference between mapping a portion of the address space and file mapping?

Signals

  1. Explain the following code from the dequeue_signal() kernel function: sig = 0; if ((x = current->pending.signal.sig[0]) & ~mask->sig[0]) != 0) sig = 1+ ffz(~x); else if ((x = current->pending.signal.sig[1] & ~mask->sig[1]) != 0) sig = 33 + ffz(~x); if (sig) { sigdelset(&current->signal, sig); recalc_sigpending(current); } return sig;

Signals

  1. What is the sigreturn system call and how is it used to implement signal delivery in Linux?

Virtual Filesystem

  1. Briefly describe the four fundamental data structures used in the VFS layer in Linux and their relationships.

Virtual Filesystem

  1. Why is the dentry cache in Linux critical to overall system performance?

Managing I/O Devices

  1. Briefly describe how low-level device request queues operate in Linux. What are the advantages of having such queues?

Disk Caches

  1. Why does Linux (Unix) need logically separate page and buffer (block) caches?