DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
UNIT – I
PROCESS AND THREADS
PART – A
1.What is an Operating system?
2. Why is the Operating System viewed as a resource allocator & control program?
3. What is the Kernel?
4. What are Batch systems?
5. What is the advantage of Multiprogramming?
6.What is an Interactive computer system?
7. What do you mean by Time-sharing systems?
8. What are multiprocessor systems & give their advantages?
9. What are the different types of multiprocessing?
10.What is graceful degradation?
11.What is Dual-Mode Operation?
12.What are privileged instructions?
13.How can a user program disrupt the normal operations of a system?
14.How is the protection for memory provided?
15.What are the various OS omponents?
16.What is a process?
17.What is a process state and mention the various states of a process?
18.What is process control block?
19.What are the use of job queues, ready queues & device queues?
20.What is meant by context switch?
21.What is co-operating process?
22. State any two distinguishing features of UNIX and Windows.
23. What is spooling?
24.Classify Real time systems.
25. Mention the features of real time systems
26.Define a thread. State the major advantages of threads.
27.State the assumption behind the bounded buffer producer consumer problem.
28.Discuss the differences between symmetric and asymmetric multiprocessing.
29. Define System calls
1. Explain the various types of computer systems. (16)
2.Explain how protection is provided for the hardware resources by the operating system.
3.What are the system components of an operating system & explain them? (16)
4. Write about the various system calls. (16)
5. What are the various process scheduling concepts? (16)
6. Explain about interprocess communication. (16)
7.Give an overview about threads. (16)
8.Explain in detail about the threading issues. (16)
9.a) (i) Explain the facilities provided by the following operating system (10)
(ii) List out the services provided by operating systems to programs and to the
users of program. (6)
10.i) Explain the process creation and termination process on process. (8)
ii) Write short notes on co-operating process and schedulers. (8)
11.a) i) List and discuss the various services provided by the operating system. (8)
ii) List and discuss the important modules of an operating system (8)
13 Describe the essential properties of Real time operating Systems (8)
14 a. (i)Explain the different operations of processes. (6)
ii) Differentiate symmetric and asymmetric multiprocessing system. (5)
iii) In what ways is the modular kernel approach similar to the layered approach?
In what ways does it differ from the layered approach? (4)
15. a) i) Discuss the critical section problem. State the basic requirements of critical
section problem solution. (6)
ii) Explain implementation of producers/Consumers problem using monitor. (10)
PROCESS SCHEDULING AND SYNCHRONIZATION
PART – A
1.What is the purpose of system programs?
2.What is a thread?
3.What are the benefits of multithreaded programming?
4.Compare user threads and kernel threads.
5.What is the use of fork and exec system calls?
6.Define thread cancellation & target thread.
7.What are the different ways in which a thread can be cancelled?
8.Define CPU scheduling.
9.What is preemptive and nonpreemptive scheduling?
10.What is a Dispatcher?
11.What is dispatch latency?
12.What are the various scheduling criteria for CPU scheduling?
14.What is turnaround time?
15.Define race condition.
16.What is critical section problem?
17.What are the requirements that a solution to the critical section problem must satisfy?
18.Define entry section and exit section.
19.Give two hardware instructions and their definitions which can be used for implementing mutual exclusion.
20.What is semaphores?
21.Define busy waiting and spinlock.
22. What is bounded waiting in critical region?
23. What are the four necessary conditions a system should posses in order to be terme deadlock?
24.Explain associative mapping.
26. State the assumption behind the bounded buffer producer consumer problem
27. What do you mean by a critical section problem
28. Define the use of Monitor
1. Write about the various CPU scheduling algorithms. (16)
2. Write notes about multiple-processor scheduling and real-time scheduling. (8)
3.What is critical section problem and explain two process solutions and multiple Process
4.Explain what semaphores are, their usage, implementation given to avoid busy waiting
and binary semaphores. (8)
5.Explain the classic problems of synchronization. (8)
6.Write about critical regions and monitors. (8)
7.Give a detailed description about deadlocks and its characterization (16)
8.Write in detail about deadlock avoidance. (8)
9.Explain the Banker's algorithm for deadlock avoidance. (8)
10.Give an account about deadlock detection. (8)
11.What are the methods involved in recovery from deadlocks? (8)
12.What is the important feature of critical section? State the dining philosophers problem
and how how to allocate the several resources among several processes in a deadlock and starvation free manner. (16)
13.Consider the following five processes, with the length of the CPU burst time given in milliseconds.
Process Burst time
Consider the First come First serve(FCFS),Non Preemptive Shortest Job First(SJF),
Round Robin(RR) (quantum=10ms) scheduling algorithms. Illustrate the scheduling
using Gantt chart. Which algorithm will give the minimum average waiting time? Discuss.(16)
14.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
three frames that all frames are initially empty (16)
15. a) i) Construct a Resource Allocation Graph for the following scenario. At time 't' Process
P1 request for a resource X, process P2 requests for a resource Y. Both the resources are
Available and they are allocated to the requesting process. At time t1 where t1>t2 both
the processes are still holding the resources, however process P1 request for Y which
is held by P2, process P2 request for X held by P1. Will there be a deadlock? f there is a
deadlock discuss the four necessary conditions for deadlock, else justify there is no
ii) With relevant example show that the implementation of a semaphore with a waiting
queue may result in deadlock (8)
16. a)Assume the following processes arrive for execution at the time indicated and also
mention with the length of the CPU-burst time given in milliseconds.
Job Burst time(ms) Priority Arrival time(ms)
P1 6 2 0
P2 2 2 1
P3 3 4 1
P4 1 1 2
P5 2 3 2
i) Give a Gantt chart illustrating the execution of these processes using FCFS,
Round Robin(quantum=1), and Priority(Preemptive and Non preemptive). (4)
ii) Calculate the average waiting time and average turn around time for each of
the above scheduling algorithm.
17 . a) Consider the following snapshot of a system. Execute Banker's algorithm answer the
Allocation Max Available
A B C D A B C D A B C D
P0 0 0 1 1 0 0 1 1 1 5 2 2
P1 1 0 0 1 1 7 5 1
P3 1 3 5 1 2 3 5 2
P4 0 0 1 1 5 6 5 1
i) What is the content of a need matrix? (2)
ii) Is the system in a safe state? If the system is safe, show how all the
process could complete their execution successfully. If the system is
unsafe, show how deadlock might occur. Explain. (6)
PART – A
2.What is the sequence in which resources may be utilized?
3.What are conditions under which a deadlock situation may arise?
4.What is a resource-allocation graph?
5.Define request edge and assignment edge.
6.What are the methods for handling deadlocks?
7.Define deadlock prevention.
8.Define deadlock avoidance.
9.What are a safe state and an unsafe state?
10.What is banker's algorithm?
11.Define logical address and physical address.
12.What is logical address space and physical address space?
13.What is the main function of the memory-management unit?
14.Define dynamic loading.
15.Define dynamic linking.
16.What are overlays?
18.What are the common strategies to select a free hole from a set of available holes?
19.What do you mean by best fit?
20.What do you mean by first fit?
21. What is segmentation?
22. Define virtual memory.
23. Why should we use virtual memory?
24. State what is required to support dynamic memory allocation in contiguous memory allocation?
25. What is Thrashing?
26. What is Pre-paging?
27. Distinguish logical and physical address space.
28. Define virtual memory.
29.What so you mean by maskable and non maskable interrupt?
1.Explain about contiguous memory allocation. (8)
2.Give the basic concepts about paging. (8)
3.Write about the techniques for structuring the page table. (8)
4.Explain the basic concepts of segmentation. (16)
5.What is demand paging and what is its use? (8)
6.Explain the various page replacement strategies. (16)
8.What is thrashing and explain the methods to avoid thrashing? (8)
9 a) i) How can deadlock be detected? Explain. (10)
ii) Write short notes on swapping (6)
10.Discuss the advantages of paging memory management and the conversion of logical
address into physical address with necessary hardware (16)
11. Consider the following page reference string:
2, 3, 4, 2, 1, 5, 6, 4, 1, 2, 3, 7, 6, 3, 2, 1 Calculate the number of page faults would occur for the
following page replacement algorithm with frame size of 4 and 5. (16)
12.(a) i) Explain the page fault handling routine with diagram. (6)
ii) Explain Contiguous and Non contiguous memory allocation with example. (10)
1.What is virtual memory?
2.What is Demand paging?
3.Define lazy swapper.
4.What is a pure demand paging?
5.Define effective access time.
6.Define secondary memory.
7.What is the basic approach of page replacement?
8.What are the various page replacement algorithms used for page replacement?
9.What are the major problems to implement demand paging?
10.What is a reference string?
11.What is a file?
12.List the various file attributes.
13.What are the various file operations?
14.What are the information associated with an open file?
15.What are the different accessing methods of a file?
16.What is Directory?
17.What are the operations that can be performed on a directory?
18.What is virtual memory?
19.What is Demand paging?
20.Define lazy swapper.
21.What is a pure demand paging?
22.Define effective access time.
1.what are files and explain the access methods for files? File definition (16)
2.Explain the schemes for defining the logical structure of a directory. (8)
3.Write notes about the protection strategies provided for files. (8)
4.Explain the allocation methods for disk space. (16)
5.What are the various methods for free space management? (16)
6 a)Discuss the following page replacement algorithms, giving a suitable page reference
string i) LRU ii)FIFO and iii)Optimal (16)
7. b) i)State the various attributes of file and their purpose. Discuss various file operations. (10)
ii) Discuss about demand paging. (6)
8. i) Give an example for an application that could benefit from operating system support
for random access to indexed files. (4)
ii)List and briefly discuss the most common schemes for defining the logical structure of a
9. With necessary diagram explain the different allocation methods of disk space. (16)
10. a) i) List and discuss various methods for implementing a directory. Single-Level directory
ii) Explain and compare different file access methods. (10)
11.a) i) Explain the indexed and linked file allocation methods. Discuss the advantages and
Disadvantages in those methods. (10)
ii) How are the processes and threads executed in Linux? (6)
FILE AND I/O SYSTEMS
1.What are the various layers of a file system?
2.What are the structures used in file-system implementation?
3.What are the functions of virtual file system (VFS)?
4.Define seek time and latency time.
5.What are the allocation methods of a disk space?
6.What are the advantages of Contiguous allocation? The advantages are
7.What are the drawbacks of contiguous allocation of disk space? The disadvantages are
8. What are the advantages of Linked allocation?
9. What are the disadvantages of linked allocation?.
10.What are the advantages of Indexed allocation?
11.How can the index blocks be implemented in the indexed allocation scheme?
12.Define rotational latency and disk bandwidth.
13.How free-space is managed using bit vector implementation?
17.What are the various disk-scheduling algorithms?
18.What is low-level formatting?
19.What is the use of boot block?
20.What is sector sparing?
23.What is low level formatting or physical formatting?
24 Differentiate RAID level 0 and RAID level 1.
25.List the features of Linux system.
27.What is the kernel of an OS
28.Mention the importance of swap-space management
1.Write about the kernel I/O subsystem. (8)
2.Explain the various disk scheduling techniques (16)
3.Write notes about disk management and swap-space management. (16)
4.Write short notes on:
(i) Disk structure (5)
(ii) Indexed allocation (5)
(iii) Shortest-seek-Time-First (SSTF) scheduling. (6)
5. a) i)List and discuss the various methods for implementing a directory. Single-Level
ii)Some file system allows disk storage to be allocated at different levels of granularity.
For instance, a file system could allocate 4KB of disk space as a single 4KB block
or as eight 512 byte blocks. How could we take advantage of the flexibility to improve
performance? What modifications would have to ne made to the free-space management
scheme in order to support this feature? (8)