Mid Term Exam 1
Mid Term Exam 1
3. (20 marks) Consider a computer system with 12 bits for virtual addresses and physical
addresses, 256 byte page size. Using the following page table:
Page no. Frame no.
0 – a. Find the corresponding physical addresses of the following logical
1 2 addresses (hexa number): 9EF, 700, 0FF
2 12
3 10 b. If the memory unit size is 1 byte, calculate the capacity of RAM,
4 – the number of frames.
5 4
6 3
7 –
8 11
9 0
MID-TERM EXAMINATION
OPERATING SYSTEMS – INS2076 – Code 2
PART B: PROBLEM SOLVING (55 MARKS)
Note: Students can use only printed documents
_______________________________________________________
4. (20 marks) Consider the following set of processes, with the length of the CPU burst,
arrival time given in milliseconds:
Process Burst Time Arrival Time Priority
P1 3 0 2
P2 8 5 1
P3 12 6 4
P4 4 8 5
P5 5 10 3
e. Draw four Gantt charts that illustrate the execution of these processes using the
following scheduling algorithms: preemptive priority (a larger priority number
implies a higher priority), and RR (quantum = 4).
f. What is the turnaround time of each process for each of the scheduling algorithms in
part a?
g. What is the waiting time of each process for each of these scheduling algorithms?
h. What is the response time of each process for each of these scheduling algorithms?
6. (20 marks) Consider a computer system with a 32-bit logical address and 4-KB page
size. The system supports up to 512 MB of physical memory. How many entries are
there in each of the following:
a. A conventional, single-level page table
b. An inverted page table
c. How many bits are required in the physical address?