






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this exam paper are: Counting Semaphore, Notes Examination, Major Components, Modern Operating, Deadlock, External Fragmentation, Pure Segmentation, External Fragmentation, Processor Scheduling, Numerical Order
Typology: Exams
1 / 10
This page cannot be seen from the preview
Don't miss anything!







University of California College of Engineering Computer Science Division- EECS Spring 2003 Anthony D. Joseph Midterm Exam March 13, 2003 CS162 Operating Systems
Your Name:
SID AND 162 Login:
TA:
Discussion Section:
General Information: This is a closed book and notes^ examination. You have two hours to answer as many questions as possible. The number in parentheses at the beginning of each question indicates the number of points given to the question; there are 100 points in all. You should read all of the questions before starting the exam, as some of the questions are substantially more time consuming.
Write all of your answers directly on this paper. Make your answers as concise as possible. If there is something in a question that you believe is open to interpretation, then please ask us about it! Good Luck!!
Problem Possible Score 1 28 2 21 3 12 4 27 5 12 Total 100
i)
ii)
iii)
b. (9 points) Give a definition of a counting semaphore, and list and describe the valid operations.
c. (4 points) List the conditions for deadlock.
b. (12 points) For each process in each schedule above, indicate the queue wait time and turnaround time (TRT). Scheduler Process 1 Process 2 Process 3 Process 4 Process 5 FIFO queue wait FIFO TRT SJF queue wait SJF TRT RR queue wait RR TRT The queue wait time is the total time a thread spends in the wait queue.
b. Virtual address format: Paging Level 1 Segment Level 2 Offset
c. Virtual address format: Segment Level 1 Paging Level 2 Offset
d. Virtual address format: Segment Level 1 Segment Level 2 Offset
d. (4 points) List the fields of a Page Table Entry (PTE).
e. (6 points) How much physical memory is needed for a process with one page of virtual memory?
f. (2 points) What happens in the virtual memory subsystem on a context switch?
The Overwhelming Might of the US Military
The flowing is the transcript of an actual radio conversation that took place in October 1995, off the coast pf England. The British Ministry of Defense recently released the transcript:
British: Calling unknown radar constant at position *****, please divert your course 150 to the south to avoid a collision.
Americans: Recommend you divert your course 150 to the north to avoid a collision.
British: Negative. Yu will have to divert your course 150 to avoid a collision.
Americans: This is the Captain of a US Navy ship. I say again, divert your course north.
British: Negative, I say again. You will have to divert your course.
Americans: This is the captain of the aircraft carrier USS Lincoln, the second largest ship in the United States’ Atlantic Fleet. Wee are accompanied by numerous support vessels. I demand that you change your course 150 north. That’s 150 north, or countermeasures will be undertaken to ensure the safety of this ship.
British: This is a lighthouse. Your move …
We can only assume that the US ships adjusted their course south.
b. (2 points) In your barrierReached method, which conditional statement (i.e., if, or while) did you use and why?