Docsity

6 Problems on System Programming - Final Exam | CS 241, Exams of Computer Science

Partial preview of the text

Download 6 Problems on System Programming - Final Exam | CS 241 and more Exams Computer Science in PDF only on Docsity!

University of Illinois at Urbana-Champaign Department of Computer S ien e

Final Examination CS 323 Op erating System Design Fall, 2000

1:30pm-4:30pm Monday De emb er 11th 100 Noyes Lab

Print your name and ID numb er neatly in the spa e provided b elow; print your name at the upp er right orner of every page.

Name: Net ID:

This is an losed b o ok, losed notes exam. You may use al ulators.

Do all parts of all six problems in this b o oklet. This b o oklet should in lude this title page, pages 1-10, and one empty page. Do your work inside this b o oklet, using the ba ks of pages and the empty page if needed. Problems are of various diÆ ulty degree, hen e if you don't know the answer immediately, progress to the following problem and ome ba k to the unsolved problem later. SHOW WORK FOR EACH PROBLEM AND DRAW BOX AROUND NUMERICAL ANSWERS.

Page S ore Grader 1 2 3 4 5 6

Total

 ( 15 Points)

Consider four pro esses, P 1 ; P 2 ; P 3 ; P 4 , whi h arrive at the same time every se ond. Assume that their burst times are 100 ms for P 1 , 30 ms for P 2 , 15 ms for P 3 and 200 ms for P 4. Assume that these pro esses are s heduled using Shortest Job First algorithm. What is the average queue length under the ab ove assumptions?

2 Problem - Pro ess Syn hronization (20 Points)

 ( 10 Points) Write a monitor that implements an alarm lo k that enables a alling program to delay itself for a sp e i ed numb er of time units (ti ks). You may assume the existen e of a real hardware lo k, whi h invokes a pro edure ti k in your monitor at regular intervals. Note: Use wait, signal primitives, as well as monitor onstru t and onditional variable(s). Don't use busy waiting/semaphores in this solution.

3 Problem - Networks (10 Points)

 ( 3 Points) What is the di eren e b etween ir uit swit hing and pa ket swit hing? Sp e ify at least two di eren es.

 ( 3 Points) In what ways is using a name server b etter than using stati host tables?

 ( 4 Points) Of what use is an address-resolution proto ol? Explain brie y the proto ol.

4 Problem - Distributed Systems (20 Points)

 ( 5 Points) Why is deadlo k dete tion mu h more exp ensive in a distributed environment than it is in a entralized environment? Explain.

 ( 5 Points) What are the trade-o s b etween a hing and remote pro edure all? Explain how ea h metho d works and provide two ma jor trade-o s.

5 Problem - Distributed File Systems (10 Points)

 ( 5 Points) Give two ma jor di eren es b etween stateful and stateless servi es.

 ( 5 Points) Explain why Network File System (NFS) do es not s ale.

6 Problem - Se urity (20 Points)

 ( 4 Points) What is the need-to-know prin iple? Why is it imp ortant for a prote tion system to adhere to this prin iple?

 ( 6 Points) How do es UNIX implement domain swit hing op eration? Explain the proto ol in general and provide an example (assume user A and B where user B owns a le and user A wants to a ess it).