Suppose that a process is in BLOCKED state waiting from some I/O service. When the service is completed, it goes to the
Official theoretical question paper for Operating Systems (PCC-CS502) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
Suppose that a process is in BLOCKED state waiting from some I/O service. When the service is completed, it goes to the
Virtual memory is
Which of the following scheduling algorithm does give minimum average waiting time?
Concurrent process are those who
Banking algorithm in an operating system is used for
Which is not a layer of operating system?
To avoid race condition the maximum number of processes that may simultaneously be inside the critical section is
The scheduler which selects jobs from the pool of jobs and loads them to the ready queue is
CPU performance is measured through
With a single resource, deadlock occurs
Give details of how paging is implemented in hardware. Explain what a Translation Lookaside Buffer (TLB) is and give details of how it works.
Suppose a disk drive has 300 cylinders, numbered 0 to 299. The current head position of the disk is at 90. The queue of pending requests, in FIFO order is 36, 79, 15, 120, 199, 270, 89, 170. Calculate the average cylinder movements for the following algorithms: i) SSTF ii) C-SCAN
Briefly explain the role of Semaphore in critical section problem.
Discuss the structure of Process Control Block.
With example describe if resources are not properly allocated to the processes it may lead from a safe state to an unsafe state.
a) Briefly explain different free space management techniques. b) If the size of each data block is 512 bytes in Unix file system, assuming the size of a pointer is 4 bytes. Find the maximum size of a file when Inode block contains 10 direct pointers, 1 single indirect pointer, 1 double indirect pointer and 1 triple indirect pointer. c) Explain compaction.
a) What do you mean by CPU scheduling? b) Consider the following set of process. CPU burst time of them are given in milliseconds. | Process | CPU Burst Time | | :--- | :--- | | P1 | 15 | | P2 | 5 | | P3 | 7 | | P4 | 10 | Draw the Gantt chart for FCFS and R.R. scheduling where time quantum q = 5 milliseconds. Calculate the average waiting time. c) Define turn around time of a job. d) What are the advantages and disadvantages of SJF scheduling? e) Explain CPU scheduling criteria.
a) Consider the following snapshot: | Process | Allocation | Max | Available | | :--- | :--- | :--- | :--- | | | A B C | A B C | A B C | | P0 | 0 1 0 | 7 5 3 | 3 3 2 | | P1 | 2 0 0 | 3 2 2 | | | P2 | 3 0 2 | 9 0 2 | | | P3 | 2 1 1 | 2 2 2 | | | P4 | 0 0 2 | 4 3 3 | | Answer the following questions using the Banker's algorithm: i) What is the content of the matrix need? ii) Is the system in a safe state? iii) If a request from process P1 arrives for (1, 0, 2) can the request be granted immediately? b) Explain the deadlock detection mechanism in case of single instance of each resource type.
a) What is overlays? b) What are the advantages of segmentation over paging? c) Explain the difference between internal fragmentation and external fragmentation. Which one occurs in paging system? How the problem of external fragmentation be solved? d) State the advantages and disadvantages of single contiguous memory allocation.
a) What is the purpose of modify bit in page table? b) Consider the following page reference string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1 How many page faults would occur for the following replacement algorithms? Assuming 3 frames are available. Also assume that initially none of pages in main memory. i) Optimal replacement ii) FIFO replacement. c) What is thrashing? d) Explain Belady's anomaly.