CSCT2103 Introductory Operating Systems CA Questions 2024
CSCT2103 Introductory Operating Systems CA Questions 2024
1
14. How does a system recover from a deadlock? (b) Prevent race conditions and ensure data integrity
(a) Ignoring the deadlock (c) Improve system performance
(b) Restarting all processes (d) Manage CPU scheduling
(c) Killing one or more processes or preempting resources 20. What does CPU scheduling determine?
(d) Increasing system memory (a) Which process is terminated
15. Which method ensures deadlock does not occur? (b) Which process gets access to the CPU next
(a) Deadlock ignorance (c) Which data is written to memory
(b) Deadlock detection (d) Which resource is used first
(c) Deadlock avoidance 21. Which of the following does NOT affect CPU
(d) Context switching utilization?
16. What is the main advantage of paging? (a) Preemptive scheduling
(a) Reduced memory overhead (b) Resource allocation
(b) Avoidance of external fragmentation (c) Disk access
(c) Simplified OS implementation (d) Context switching
(d) Variable page sizes 22. What happens if the quantum time for a Round
17. What does segmentation divide memory into? Robin scheduler is very large?
(a) Fixed-size blocks (a) The system runs smoothly without context switching
(b) Variable-length segments (b) It behaves similarly to FCFS
(c) Frames (c) It will terminate all processes
(d) Pages (d) It minimizes CPU usage
18. What is a critical section? 23. Which scheduling algorithm minimizes the average
(a) A region that must be executed sequentially wait time?
(b)A shared memory region accessed by multiple processes (a) FCFS
(c) An OS-controlled memory segment (b) SRTF
(d) A thread execution boundary (c) Round Robin
19. What is the primary goal of process synchronization? (d) SJF
(a) Enable multitasking
Section B (7 Marks)
a) Describe the concept of a race condition and explain how it can be avoided. (2 marks)
b) Consider the set of 5 processes whose arrival time and burst time and priority are given below:
Process Id Arrival time Burst time Priority
P1 0 4 2
P2 1 3 3
P3 2 1 4
P4 3 5 5
P5 4 2 5
If the CPU scheduling policy is priority preemptive, calculate the average waiting time and average
turnaround time. (Higher number represents higher priority). (5 marks)
GOOD LUCK!!!