OS MODEL QP

download OS MODEL QP

of 2

description

operating system

Transcript of OS MODEL QP

DHANALAKSHMI COLLEGE OF ENGINEERING

APOLLO GROUP OF COLLEGESMODEL QUESTION PAPER

CS 6401 OPERATING SYSTEMClass: II CSE

Date: MACROBUTTON DD/MM/YY 05-04-2015Semester: MACROBUTTON AcceptAllChangesInDoc

MACROBUTTON AcceptAllChangesInDoc IV

Duration: 3 Hrs.

Max. Marks: 100Answer ALL Questions

PART A

( 10 X 2 = 20 )

1. Define Operating System.2. What is a system call?3. Define Process? What are the states of a process?4. What is critical section problem? 5. What is Paging?6. Difference between internal and external fragmentation.7. What is seek time?.8. .What are the file attributes?9. What is Simultaneous multithreading?

10. What is VMware on Linux?PART B ( 5 X 16 = 80 )11. (a)(i) Explain in detail the operating system services

( 08 ) (ii) Explain operating system structure in detail

(08)

Or

(b) (i) Explain about DMA.

( 08 ) (ii) What is interrupt?Explain.

( 08) 12. Consider the following set of processes with the length of the CPU burst time given in milliseconds

ProcessBurst TimePriority P1103 P211 P323 P41 4 P552

The processes are assumed to have arrived in theorder p1,p2,p3,p4,p5 all at time 0.

a. Draw four Gantt charts illustrating the execution of these processes using FCFS,SJF,anon preemptive priority (a smaller priority number implies a higher priority)and RR (quantum=1)scheduling

b. . b. What is the turnaround time of each process for each of the scheduling algorithms.

(16 )

Or

(b) (i) Expain about deadlock prevention and deadlock avoidance algorithms.

( 08 ) (ii) Explain the inter process communication

( 08 ) 13. (i) Consider the following pagereference string: 1,2,3,4,,2,1,5,6,2,1,2,3,7,6,3,2,1,2,3,6

How many page faults would occur for the following replacement algorithms, assuming two, three frames? Remember that all frames are initially empty, so your first unique pages will all cost one fault each. LRU replacement FIFO replacement Optimal replacement

( 08 )(ii) Given memory partitions of 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB( in order), how would each off the firstfit, bestfit, and worstfit algorithms place processes of 212 KB, 417 KB, 112 KB, and 426 KB (in order) ? Which algorithm makes the most efficient use of memory?Or(b) Explain in detail about paging and segmentation .

(16)14. Suppose that a disk drive has 5000 cylinders, numbered 0 to 4999.The drive is currently serving a request at cylinder 143, and the previous request was at cylinder 125.The queue of pending requests, in FIFO order, is 86, 1470, 913, 1774, 948, 1509, 1022, 1750, 130. Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following diskscheduling algorithms? a. FCFS b. SSTF c. SCAN d. LOOK e. CSCAN f. CLOOK

Or

(b) (i) Explain in detail about directory structure.

(08)(ii) Explain indexed and linked file allocation methods.

(08)15. (a) Explain system administration requirement for Linux system administrator( 16 )

Or

(b) Explain in detail about VM Ware on Linux Host and Adding Guest OS.

Explain in detail about setting up Xen.

(16) REG NO: