Tribhuvan University
Bachelor of Science in Computer Science and Information Technology
Semester 4 · TU Board 2081
Course Title: Operating Systems (CSC264)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.
Group A
Attempt any TWO questions.(2 × 10 = 20)
- 1.10
Explain the translation of logical address into physical address using segment table with necessary diagram. List advantages and disadvantages of segmentation.
- 2.10
Find the seek time using SCAN, C-SCAN, Look and C-Look disk scheduling algorithms for processing the following request queue:
35, 70, 45, 15, 65, 20, 80, 90, 75, 130.
Suppose the disk has tracks numbered from 0 to 150 and assume the disk arm to be at 30 and moving outward.Answer comingAlso asked in 2080, 2079
- 3.10
Explain the Sleeping Barber problem. Illustrate on how it can be solved.
Group B
Attempt any EIGHT questions.(8 × 5 = 40)
- 4.5
Explain microkernels and exokernels.
- 5.5
Consider a swapping system in which memory consists of the following hole sizes in memory order:
15 MB, 2 MB, 10 MB, 6 MB, 8 MB and 20 MB.
Which hole is taken for successive segment requests of:(a) 10 MB
(b) 10 MB
For first fit, next fit and best fit. - 6.5
Explain how semaphore solves the problem of critical section.
- 7.5
How do you think deadlock can be avoided? Explain.
- 8.5
Explain Inter-Process Communication in Linux.
- 9.5
List different file structures and explain them.
- 10.5
Calculate the average waiting time and turnaround time using priority algorithm (Priority 1 being the highest) for the given scenario:
PID
Brust Time
Arrival Time
Priority
A
3
0
3
B
2
2
3
C
4
3
2
D
2
3
1 - 11.5
Explain memory-mapped I/O.
- 12.5
Write short notes on:
- Virtual Memory
- Race Condition
— The End —