CS162 Spring 1990 Midterm 2: UNIX Operating System Questions, Exams of Computer Science

The questions and answers for midterm 2 of the cs162 spring 1990 course at the university of california, berkeley, focusing on unix operating system concepts such as i/o buffering, process scheduling, line disciplines, fairness, and file system operations.

Typology: Exams

Pre 2010

Uploaded on 10/28/2010

koofers-user-d6c
koofers-user-d6c 🇺🇸

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS162 Spring 1990, MT2
CS 162, Spring 1990
Midterm #2
Professor David Anderson
Problem #1 (10 points)
true/false
-I/O buffering can increase CPU utilization.
-The two "sides" of a UNIX pseudo-tty are equivelent.
-Shortest CPU burst first process scheduling minimizes average turnaround time.
-Sun NFS client caches are always consistent
-Data can flow both up and down between adjacent protocol layers.
Problem #2 (10 points)
a) List three input functions and one output function of the BSD UNIX line discipline in cooked mode
b) Would system performance increase or decrease if line disciplines were moved from the kernel to
the user level? Explain.
Problem #3 (10 points)
a) What does it mean to say that access to a resource is "fair"?
b) What is "aging"? Under what circumstances does aging provide fairness and why?
c) The "fair share scheduler" used in some versions of UNIX provides a different kind of fairness.
Describe as precisely as you can this notion of "fairness"?
d) Describe, in words or in pseudocode, what the sending side of RMP does to deliver a client message.
When should the client call (to send the message) return?
e) Describe, in words or in pseudocode, what the receiving side of RMP does to handle an incoming
datagram.
f) Is RMP appropriate for wide-area networks? Explain.
Problem #4 (15 points)
Not available
file:///C|/Documents%20and%20Settings/Jason%20Raft...Spring%201990%20-%20Anderson%20-%20Midterm%202.htm (1 of 3)1/27/2007 4:00:49 PM
pf3

Partial preview of the text

Download CS162 Spring 1990 Midterm 2: UNIX Operating System Questions and more Exams Computer Science in PDF only on Docsity!

CS 162, Spring 1990

Midterm

Professor David Anderson

Problem #1 (10 points)

true/false -I/O buffering can increase CPU utilization. -The two "sides" of a UNIX pseudo-tty are equivelent. -Shortest CPU burst first process scheduling minimizes average turnaround time. -Sun NFS client caches are always consistent -Data can flow both up and down between adjacent protocol layers.

Problem #2 (10 points)

a) List three input functions and one output function of the BSD UNIX line discipline in cooked mode b) Would system performance increase or decrease if line disciplines were moved from the kernel to the user level? Explain.

Problem #3 (10 points)

a) What does it mean to say that access to a resource is "fair"? b) What is "aging"? Under what circumstances does aging provide fairness and why? c) The "fair share scheduler" used in some versions of UNIX provides a different kind of fairness. Describe as precisely as you can this notion of "fairness"? d) Describe, in words or in pseudocode, what the sending side of RMP does to deliver a client message. When should the client call (to send the message) return? e) Describe, in words or in pseudocode, what the receiving side of RMP does to handle an incoming datagram. f) Is RMP appropriate for wide-area networks? Explain.

Problem #4 (15 points)

Not available

Problem #5 (15 points)

Not available.

Problem #6 (15 points)

Acne's computers use a BSD UNIX-based operating system. Noah Tall has complained that the following pair of calls run slower than they should:

fd = open("/a/b", O_RDONLY, 0); read(fd, buf, l);

where /a/b is any existing file, and the buffer and inode caches are initially empty.

a) Explain to Noah why this is slow (tell him about all the disk operations that are needed. b) Propose a reasonable way to change the UNIX file system disk layout to reduce the number of disk operations in the above case.

Problem #7 (25 points)

Your next assignment at Acne is to design a transport protocol. The "Reliable Message Protocol" (RMP) is connection-oriented, provides unidirectional reliable message streams, and uses IP:

P1 P2 Clients of RMP

RMP Reliable Message Protocol IP Internet Protocol Network Network layers protocol

RMP client messages may be larger than the 64KB limit on IP datagrams. RMP will be used across networks that can damage, lose, reorder, and delay packets. You're in charge of the data-transfer part of RMP; another group is handling connection establishment. For simplicity, you decide that RMP will use a "stop-and-wait" protocol (i.e., a send window siize of 1).

Posted by HKN (Electrical Engineering and Computer Science Honor Society)