Operating System 1
Operating System 1
Part-III (Subjective)
Consider the following set of Processes, with the length of CPU time given in microseconds. Draw the Gantt chart, using Round
Robin Algorithm when Time Slice = 3 microseconds. Also compute the waiting and turnaround times of each process.
System State is as shown below, find safe sequence using Bankers algorithms.
1. Consider a system with 64-bit logical address. This system implements paging with 2 KB page size. Compute: lengths
of p and d fields in the logical address.
2. In a paging system, logical address space is 4 GB and the page size is 4 KB. Available physical memory is 16 GB.
Compute: length of logical address and length of f field in the physical address.
3. If the hit-ratio to a TLB is 98%, and it takes 10 nanoseconds (nsec) to search the TLB and 100 nsec to access the main
memory, then what must be the Effective Memory Access Time in nanoseconds?
4. If the total number of available frame is 50, and there are 2 processes; one of 50 pages and the other of 35 pages, then
how much memory would be proportionally allocated to each of these processes?
5. What is meant by Belady’s Anomaly? Why stack based algorithms do not suffer from Belady’s Anomaly?
UNIVERSITY OF THE PUNJAB
Fifth Semester 2014 Roll NO. _________________
Examination: B.S. 4 Years Programme
1. Explain the difference between layered and module based operating system structure?
2. Describe the difference among short-term, medium term, and long term scheduling.
3. What are the two differences between kernel level thread and user level thread? Under what circumstance is one type
better than other?
4. In a multithreaded application, if we implement Many-to-Many model then how does this application handle the
threads?
5. Mention the three problems that may be caused by the wrong initialization or placement of wait ( ) and signal ( )
operations in the use of semaphores.
Part-III (Subjective)
Consider the following set of Processes, with the length of CPU time given in microseconds. Draw the Gantt chart, using Round
Robin Algorithm when Time Slice = 4 microseconds. Also compute the waiting and turnaround times of each process.
System State is as shown below, find safe sequence using Bankers algorithms.
1. Consider a system with 64-bit logical address. This system implements paging with 1 KB page size. Compute: lengths of
p and d fields in the logical address.
2. In a paging system, logical address space is 8 GB and the page size is 2 KB. Available physical memory is 46 GB.
Compute: length of logical address and length of f field in the physical address.
3. If the hit-ratio to a TLB is 90%, and it takes 20 nanoseconds (nsec) to search the TLB and 200 nsec to access the main
memory, then what must be the Effective Memory Access Time in nanoseconds?
4. If the total number of available frame is 60, and there are 2 processes; one of 50 pages and the other of 40 pages, then
how much memory would be proportionally allocated to each of these processes?
5. What is meant by Thrashing?
UNIVERSITY OF THE PUNJAB
Fifth Semester 2015 Roll NO. _________________
Examination: B.S. 4 Years Programme
1. What are the main differences between operating systems for mainframe computers and personal computers?
2. Why is it important for the scheduler to distinguish I/O-bound programs from CPU-bound programs?
3. What are the four necessary conditions for a deadlock to occur?
4. Explain the difference between internal and external fragmentation.
5. What is the copy-on-write feature and under what circumstances is it beneficial to use this feature?
Part-III (Subjective)
Consider the following set of Processes, with the length of CPU time given in microseconds. Draw the Gantt chart, using Round
Robin Algorithm when Time Slice = 3 microseconds. Also compute the waiting and turnaround times of each process.
System State is as shown below, find safe sequence using Bankers algorithms.
1. Consider a system with 33-bit logical address. This system implements paging with 2 KB page size. Computer: lengths
of p and d fields in the logical address.
2. In a paging system, logical address space is 16 GB and the page size is 4 KB. Available physical memory is 8 GB.
Compute: length of logical address and length of f field in the physical address.
3. In a paging system, logical address space is 4 GB and the page size is 4 KB. Page table entry size is of 32-bit. How many
levels of paging will be there?
4. If the hit ratio to a TLB is 95 %, and it takes 30 nanoseconds (nsec) to search the TLB and 300 nsec to access the main
memory, then what must be the Effective Memory Access Time in nanoseconds?
5. If the total number of available frames is 120, and there are 3 processes; one of 50 pages, second of 60 page and the
third of 40 pages, then how much memory would be proportionally allocated to each of these processes?
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner