(i) How do wide varieties of storage structure differ in operating system? (ii) What are the five major activities of an operating system with regard to file management?
[3 marks]Consider the four processes with the length of the CPU burst given in milliseconds: Process Arrival Time Burst time P1 0 P2 1 P3 2 9 P4 3 Draw the Gnatt chart assuming preemptive shortest job first scheduling. Calculate the average waiting time for preemptive scheduling. The shortest Job first is a special case of the general priority scheduling algorithm. True or False? Justify your answer.
[5 marks]How does a parent process create a child process? How does a parent process create an ordinary pipe (anonymous pipe) for communicating with child process? Write the steps.
[7 marks](i) What advantage is there in having different time quantum sizes at different levels of a multilevel queueing system? (ii) If each resource type has several instances, then a cycle does not necessarily imply that a deadlock has occurred. Explain with resource allocation graph.
[3 marks](i) Which scheduling algorithm result in starvation? (ii) Assuming a 1 KB page size, what are the page numbers and offsets for the following address references (provided as decimal numbers): a. 2375 b. 19366 c. 30000
[3 marks](i) What is the problem with interrupt driven I/O ? How is this problem solved? (ii) What are system calls? What is application programming interface?
[3 marks]What are two differences between user level threads and kernel level threads? Under what circumstances is one type better than the other?
[7 marks]How bounded buffer can be used to enable processes to share memory? Write the producer process and write consumer process.
[7 marks]What is a critical section problem? Explain Peterson’s solution for critical section problem.
[7 marks]For which system Banker’s algorithm is applicable? Apply banker’s algorithm to the following snapshot taken at time t and find out process execution sequence0 that lands a system in safe state. Allocation Max Available A B C A B C A B C P 0 1 0 7 5 3 3 3 P 2 0 0 3 2 21 P 3 0 2 9 0 22 P 2 1 1 2 2 23 P 0 0 2 4 3 34
[20 marks]What is demand paging? For given reference string: a, b, c, d, c, a, d, b, e, b, a, b, c, d and the size of the frame be 4.How many page faults occur in case of FIFO policy? How many page faults occur in case of LRU? What is Belady’s anomaly?
[7 marks]How Dinning philosopher problem can be solved?
[7 marks]Given five memory partitions of 100Kb, 500Kb, 200Kb, 300Kb, 600Kb (in order), how would the first-fit, best-fit, and worst-fit algorithms place processes of 212 Kb, 417 Kb, 112 Kb, and 426 Kb (in order)? Which algorithm makes the most efficient use of memory?
[7 marks]Explain file system structure and also explain allocation methods.
[7 marks]Write different process states. What is context switching? What are the contents of process control block?
[7 marks]What is kernel and shell in Unix operating system? Explain file structure of UNIX operating system. Which command is used to get list of all files along with permissions on that file in UNIX?
[7 marks]What are the goals of interrupt handlers? Write disk scheduling algorithm.
[7 marks]