Al3452 Os QB
Al3452 Os QB
QUESTION BANK
YEAR/SEM : II / IV
NAME OF THE SUBJECT : AL3452– Operating Systems
NAME OF THE FACULTY : Mrs V. Kalaiselvi AP/AI&DS
UNIT I INTRODUCTION 7
Computer System - Elements and organization; Operating System Overview - Objectives and
Functions - Evolution of Operating System; Operating System Structures – Operating System
Services - User Operating System Interface - System Calls – System Programs - Design and
Implementation - Structuring methods.
PART A
1. Define Operating System?(K1)(CSE-May 2023)
2. What is meant by computer system?(K1)
3. What are the objectives of operating system?(K1)
4. “OS is a control program”, Justify the statement with an example scenario.(K5) (Nov2023)
5. Define system call. Give any two System Calls with their purpose.(K1)(CSE-Nov2023)
6. List the Services of OS.(K1) (CSE-May 2023)
7. What are the types of Booting? Define each.(K1)
8. List out the elements of computer systems.(K1)
9. Why API’s need to be used rather than system call? (K1)
10. What is an interrupt?(K1)
11. Distinguish between batch systems and time-sharing systems.(K4)
12. What is bootstrap program?(K1)
13. Illustrate the different interrupt clauses. (K3)
14. Illustrate the use of fork and exec system calls.(K3)
15. Define: Clustered systems.(K1)
16. List the various user and operating system interfaces.(K1)
17. What is the Kernel?(K1)
18. Define Cache memory?(K1)
19. What is meant by serial processing operating system? (K1)
20. What is Multiprocessor System? (K1)
21. What are the advantages of multiprocessors? (K1)
22. What is the use of Fork and Exec System Calls? (K1)
23. What are the six major categories of System Calls?
24. What are the Components of a Computer System? (K1)
25. How are ios and Android similar? How are they different? (K1)
26. Draw a neat diagram of storage-device hierarchy.(K5)
27. What are the two view points of operating system? Define each. (K1)
28. Distinguish between network operating systems and distributed operating systems. (K4)
29. Write about Real time operating system? (K3)
30. List out various operating system structuring methods? (K1)
31. What is meant by system programs? (K1)
32. Compare the Apple’s macos and ios operating systems.(K4)
33. Write about hybrid system structuring method in operating system?(K1)
PART B
1. (i) List down the Objectives and Functions of Operating Systems. (K1)(CSE-Nov2023)
(ii)Detail the various types of user interfaces supported by Operating Systems. (K2)
2. (i) Explain various Structures of operating Systems. (K2)(CSE-Nov2023)
(ii)Explain the purpose and importance of System calls in detail with examples. (K2)
3. Explain different operating system structures with neat sketch. (K2)
4. Explain the various types of system calls with examples. (K2)
5. What is a system call? Elaborate on the types of System calls.(K1)(CSE-May2023)
6. Explain the Functions performed by an Operating System.(K2)(CSE May2023)
7. Explain in detail the Evolution of operating System.(K2)
8. Explain in detail about computer system elements and organization?(K2)
9. Write an Operating System Overview with a neat diagram?(K1)
10. List the various services provided by operating systems.(K1)
11. (i)Discuss the various types of user operating system interfaces.(K2)
(ii)List the various system programs in operating system.(K1)
12. Discuss about the evolution of operating Systems. Also explain Design and implementation 0f operating
systems.(K2)
13. With neat sketch, discuss about computer system overview.(K3)
14. Explain about Design and Implementation of operating System.(K2)
15. Explain in detail about various structuring methods of Operating system.(K2)
P1 10 3
P2 1 1
P3 2 3
P4 1 4
P5 5 2
The processes are arrived in the order P1, P2, P3, P4, P5, all at time 0.
a) Draw 4 Gantt charts illustrating the execution of these processes using FCFS, SJF, Priority and RR (Time
Slice = 1) scheduling
b) What is the turnaround time of each process for each of the scheduling?
c) Calculate the waiting time for each of the process.
10) The following processes are being scheduled using a preemptive, roundrobin scheduling algorithm. (K6)
Process Priority Burst Arrival
P1 40 20 0
P2 30 25 25
P3 30 25 30
P4 35 15 60
P5 5 10 100
P6 10 10 105
Each process is assigned a numerical priority, with a higher number indicating a higher relative
priority. In addition to the processes listed below,the system also has an idle task (which consumes no
CPU resources and is identified as Pidle). This task has priority 0 and is scheduled whenever the
system has no other available processes to run. The length of a time quantum is 10 units. If a process is
preempted by a higher-priority process, the preempted process is placed at the end of the queue.
a. Show the scheduling order of the processes using a Gantt chart.
b. What is the turnaround time for each process?
c. What is the waiting time for each process?
d. What is the CPU utilization rate?
11) Consider the following Five processes that arrive at time 0, with the length of the
CPU burst time given in milliseconds. (K6)
Processes CPU Brust time
P1 10
P2 29
P3 3
P4 7
P5 12
Consider the First Come First Serve (FCFS),non-preemptive Shortest Job First(SJF),Round Robin(RR)
(quantum=10 milliseconds) scheduling algorithms. Illustrate the Scheduling using Gantt chart. Which
algorithm will give the minimum average waiting time? (May 2023)
12) Consider following Set of processes, with length of CPU burst time given in milliseconds (Nov 2023)
(K6)
Process Burst time
P1 10
P2 1
P3 2
P4 5
i)Draw Gantt’s Chart illustrating the execution of these Processes using FCFS, SJF and Round Robin
(with quantum=1) scheduling techniques.
ii)Find the Turnaround time and Waiting time of each process using above technique.
13) Consider Three Processes, all arriving at time zero, with total execution time of 10,20 and 30 units
respectively. Each process spends the first 20% of execution time doing I/O, the next 70% of time doing
computation, and the last 10% of time doing I/O again. The operating system uses a shortest remaining
compute time first scheduling algorithm and schedules a new process either when the running process gets
blocked on I/O or when the running process finishes its compute burst. Assume that all I/O operations can be
overlapped as much as possible. (K6)
i) Calculate average wating time and average turn around time.
ii) Draw Gantt Chart of CPU burst.
iii) Calculate CPU idle time. (Nov 2023)
14) i) Define thread and explain in detail about Multithread models. (K1) (K2)
ii) Discuss the threading issues which are considered with multithreaded programs. (K2)
15) State critical section problem? Discuss three solutions to solve the critical section problem. (K1) (K2)
16) List and Explain about Hardware support for Synchronization. (K2)
17) What is semaphore? Discuss product-consumer problem with semaphore. (K2)
18) Explain Peterson’s solution for achieving mutual exclusion. (K2)
20) Write short note on: a) Dining philosopher problem (K2)
b) MUTEX Locks c) Monitors
d) Peterson’s solution for achieving mutual exclusion
e) Semaphores f) Readers & writers’ problem.
21) How monitors help in process synchronization. (K2)
22) List and explain classical Problems of Synchronization in detail. (K2)
23) Explain in detail how semaphores and monitors are used to solve producer consumer problem. (K2)
24) Describe in detail about readers and writers problem and dining philosopher problem. (K2)
25) Write in detail about deadlock handling. (K2)
26) Write in detail about deadlock avoidance. (K2)
27) Write in detail about deadlock prevention. (K2)
28) Write in detail about deadlock recovery. (K2)
29) Write Banker’s algorithm for Deadlock Avoidance. Explain with an Example (May2023) (K2)
30) Explain the RAG representation in deadlock detection. (K2)
31)Consider the following questions based on the banker’s algorithm: (K6)
Allocation Max Available
P0 A B C D ABCD ABCD
P1 0012 0012 1520
P2 1000 1750
P3 1354 2356
P4 0632 0652
P5 0014 0656
i) Define safety algorithm. ii) What is the content of the matrix Need?
ii) Is the system in a safe state? iv) If a request from process P! arrives for (0,4,2,0), can the request be
granted immediately?
32. Consider the following snapshot of a system: (10) (CO2) (K6)
P0 – P4 are 5 processes present and A, B, C, D are the resources. The maximum need of a Process
and the allocated resources details are given in the table.Answer the following based on banker’s algorithm.
(1) What is the content of NEED matrix?
(2) Is the system in a safe state?
(3) If a request from process P0 arrives for (0, 2, 0) can the request be granted immediately.
PART A
1. Define Main memory? (K1)
2. What is address binding? (K1)
3. What is the main function of the memory-management unit? (K1)
4. Define logical address space and physical address space. (K1)
5. Define dynamic loading. (K1)
6. Define dynamic linking. (K1)
7. Define Contiguous Memory Allocation. (K1)
8. What do you mean by First Fit? (K1)
9. What do you mean by Best Fit? (K1)
10. What do you mean by Worst Fit? (K1)
11. Given memory partitions of 100KB,500Kb,200Kb,300KB and 600 KB (in order), How would
each of the first fit, best fit, worst fit algorithms place process of 212 KB,417 KB,112KB and
426KB (in order). (K6)
12. Difference between internal and external fragmentation. (K4)
13. what is meant by External Fragmentation? How can that be overcome? (K1)
14. Why are page sizes always powers of 2? (K2)
15. Name two differences between logical and physical addresses with an example.
16. Consider a logical address space of eight pages of 1024 words each, mapped onto a physical
memory of 32 frames. (K6)
a. How many bits are there in the logical address?
b. How many bits are there in the physical address?
17. Consider a logical address space of 2,048 pages with a 4-KB page size, mapped onto a
physical memory of 512 frames. (K6)
a. How many bits are required in the logical address?
b. How many bits are required in the physical address?
18. What is the use of Valid-Invalid Bits in Paging? (K1)
19. What is the basic method of Segmentation? (K1)
20. What you mean by compaction? In which situation is it applied. (K1)
21. What is the purpose of paging the page tables?
22. Define Pages and Frames. (K1)
23. Define TLB. (K1)
24. Define swapping. (K1)
25. What are overlays? Compare swapping and overlays. (K1)
26. Define effective access time. (K1)
27. List and define the common Techniques for Structuring the page table. (K1)
28. Compare and Contrast Paging and Segmentation. (K6)
29. What is virtual memory? Mention its advantages. (K1)
30. Define Demand paging and write advantages. (K1)
31. What is thrashing? (K1) (Nov-2023)
32. How do you limit the effects of thrashing? (K2)
33. What do mean by page fault? (K1)
34. Define Pre paging. (K1)
35. Write the difference between demands paging and pure demand paging? (K4)
36. Define Copy-on-write. (K1)
37. Define lazy swapper. (K1)
38. What is the basic approach of page replacement? (K1)
39. What is the various page replacement algorithms used for page replacement? (K1)
40. Differentiate between Global and Local page replacement algorithms. (K4)
41. What are the major problems to implement demand paging? (K1)
42. What is a reference string? (K1)
43. How do you limit the effects of thrashing? (K2)
44. Define demand paging in memory management. (K1)
45. What are the steps required to handle a page fault in demand paging. (K1)
46. How does the system detect thrashing? (K2)
47. Will optimal page replacement algorithm suffer from Belady’s anomaly? Justify your answer.
(K6)
48. Write about swapping. Let us assume the user process is of size 1MB and the backing store is a
standard hard disk with a transfer rate of 5MBPS. Calculate the transfer rate. (K1)(K4)
49. Consider the following page-reference string: (K6)
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. How many page faults and page fault ratio would occur for the
FIFO page replacement algorithm?
50. What is the counting-based page replacement algorithm? (K1)
51. Define: Belady’s anomaly? (K1)
52. What are the common strategies to select a free hole from a set of available holes?(K1)
53. What is meant by NUMA? (K1)
54. Distinguish between page and segment. (K4)
55. List the need of inverted page table. (K1)
56. What do you mean by pure demand paging? (K1)
57. What is the Working-set Model? (K1)
58. Assuming a 1-KB page size, what are the page numbers and offsets for the following address
references (provided as decimal numbers)?(K4)
a. 21205
b. 164250
c. 121357
d. 16479315
e. 27253187
59. Assuming a 1-KB page size, what are the page numbers and offsets for the following address
references (provided as decimal numbers): (K4)
a. 3085
b. 42095
c. 215201
d. 650000
e. 2000001
60. Brief on the causes of Thrashing. (K1)
PART-A
PART-B & C
1. Explain in detail about history, benefits and features of Virtual Machines. (K2)
2. Explain in detail about Building blocks of Virtual Machines. (K2)
3. Present an outline of the types of Virtual Machines in detail. (K2) May 2023
4. Explain various types of Virtual Machines and their implementations in detail. (K2) Nov 2023
5. Explain in detail about virtualization and Operating System Components. (K2)
6. Outline the Operating system aspects of virtualization in the context of operating system functions
scheduling, I/O and memory management. (K1) May 2023
7. i) Explain the architecture of Android OS. (K2)
ii) Compare iOS with Android OS. (K2) Nov 2023
8. With frame work explain the working function of android operating system architecture. Compare
the feature of iOS and android. (K2)
*************