Os Question Bank
Os Question Bank
TECH (CSE)
SEMESTER / YEAR:IV/II YEAR
SUBJECT NAME (SUBJECT CODE): OS (BCS401)
SECTION-A
Note: 10 questions from each unit as per 10 marks or 5 marks.
Q.1.
UNIT-I
a) Write down the different types of operating system. CO1
b) What is Real time operating system? What is the difference between hard real time and soft real CO1
time operating system?
d) Explain Layered structure of an operating system. Also explain advantages and disadvantages of CO1
layered approach to system design.
e) Explain the services provided by operating system. CO3
h) What do you understand by System call? Enumerate five system calls used in process management. CO2
UNIT-II
a) State and describe the producer consumer problem with its suitable solution. CO1
d) What do you understand by critical section? What are the requirements of a solution to the critical CO2
section problem?
i) State the readers/writers problem with readers having priority. Give solution of the problem using CO2
semaphore.
UNIT-III
a) What is CPU Scheduling? Give the criteria for scheduling. CO2
b) Draw the process state diagram and describe the various process states. CO2
i) What are various criteria for a good process scheduling algorithm? Explain any two preemptive CO1
scheduling algorithms in brief.
j) What are the conditions for deadlock? Explain deadlock detection and recovery in detail. CO2
UNIT-IV
a) Consider a logical address space of eight pages of 1024 words, each mapped onto a physical CO1
memory of 32 frames then:
i) How many bits are in logical address?
ii) How many bits are in physical address?
b) What are the different techniques to remove fragmentation in case of multiprogramming with fixed CO2
partition and variables partitions?
c) Given memory partitions of 100K, 500K, 200K, 300K and 600K (in order). How would each of the CO3
first fit, best fit and worst fit algorithms place processes of 212K, 417K, 112K and 426K (in order)
? Which algorithms make the most efficient use of memory?
d) What is paging? Describe how logical address is translated to physical address in a paged system. CO4
Further give reasons as to why page sizes are always kept in powers of 2.
e) How many page faults would occur for the following reference string for four page frames using CO5
LRU and FIFO alogorithms?
1,2,3,4,5,5,3,4,1,6,7,8,7,8,9,7,8,9,5,4,5,4,2
f) Consider a demand paged system. Page tables are held in registers. It takes 8 milliseconds to CO2
service a page fault if an empty page is available or the replaced page is not modified and 20
milliseconds if the replaced page is modified. Memory access time is 100 nanoseconds. Assume
that the page to be replaced is modified 70 percent of the time. What is the maximum acceptable
page fault rate for an effective access time of not more than 200 nanoseconds?
UNIT-V
a) Write short note on I/O buffering. CO2
b) Explain the need of system protection with the help of examples. CO3
g) Explain the SSTF and SCAN disk scheduling policies. Obtain the total number of head movements CO3
needed to satisfy the following sequence of track requests for each of the two policies: 27, 129,110,
186, 147,41,10,64,120 Assume that the disk head is initially positioned over track 100 and is
moving in the direction of decreasing track number.
j) What do you mean by directory? What are the operations that can be performed on a directory? CO1
SECTION-B
Note: 10 questions from each unit as per 2 marks. Change CO as per questions
Q.2.
UNIT-I
a) CO1
Define operating system. Explain in short.
UNIT-II
a) Difference between process and program. CO2
c) What are the requirements of a solution to the critical section problem? CO2
d) Define the term Race condition. CO2
e) What are the two fundamentals models of interprocess communication models? CO3
UNIT-III
a) What is the need for process control block (PCB)? CO3
UNIT-IV
a) Explain concept of virtual memory. CO2
UNIT-V
a) Write a short note on seek time. CO4