Process Management - process scheduling, inter-process communication, client-server communication, process synchronization, critical-section problem, Peterson's solution, semaphores - Question Bank
1. Which of the following is a method to recover from deadlock?
2. Monitors are higher-level synchronization constructs that encapsulate:
3. In client-server communication, Remote Procedure Call (RPC) allows a client to:
4. Which scheduling algorithm is optimal in terms of minimizing average waiting time but is not practical to implement in most real-time systems?
5. A semaphore initialized to 0 can be used to:
6. What is the main advantage of using shared memory for IPC?
7. Which mechanism is often used to prevent deadlock by ensuring that a process requests all its required resources at once?
8. A deadlock can occur if four conditions are met simultaneously: Mutual Exclusion, Hold and Wait, No Preemption, and:
9. In process scheduling, the concept of 'context switching' refers to:
10. Which of the following synchronization tools is generally considered more primitive and lower-level?
11. An atomic operation is one that:
12. What is a common use case for the client-server communication model?
13. In the context of IPC, sockets provide:
14. Which scheduling algorithm is most susceptible to starvation if not implemented carefully?
15. Starvation in process scheduling occurs when:
16. Deadlock is a situation where:
17. What is the primary purpose of a mutex (mutual exclusion lock)?
18. Using semaphores to solve the producer-consumer problem requires:
19. A counting semaphore initialized to 1 and used with `wait()` and `signal()` operations behaves like a:
20. A counting semaphore is initialized to a non-negative integer. Its value can range from:
21. The `signal()` operation on a semaphore (also known as V operation) performs which of the following?
22. The `wait()` operation on a semaphore (also known as P operation) performs which of the following?
23. A binary semaphore can have only two values:
24. Semaphores are synchronization primitives that are used to control access to shared resources. A semaphore is essentially:
25. Which condition in Peterson's solution ensures mutual exclusion?
26. Peterson's solution uses two shared variables: an array `flag[2]` and a variable `turn`. `flag[i]` is true if process `i` is ready to enter its critical section. What does `turn` indicate?
27. Peterson's solution is a software-based solution for the critical-section problem that works for:
28. Bounded Waiting is a requirement for a critical-section solution, meaning:
29. Progress is a requirement for a critical-section solution, meaning:
30. Mutual Exclusion ensures that:
31. Which of the following is a requirement for a solution to the critical-section problem?
32. The critical section is a segment of code where a process:
33. A race condition occurs when:
34. Process synchronization is necessary to:
35. What is a potential issue with client-server communication over a network?
36. The server in the client-server model typically:
37. In the client-server model, the client typically:
38. Message passing is another IPC mechanism. It involves:
39. Which of the following is a common method for IPC?
40. Inter-Process Communication (IPC) refers to:
41. Priority scheduling can be preemptive or non-preemptive. In preemptive priority scheduling:
42. Which scheduling algorithm is non-preemptive and executes processes in the order they arrive?
43. In Round Robin scheduling, each process gets a small unit of CPU time called a:
44. Which scheduling algorithm aims to minimize the average waiting time by executing the process with the shortest burst time first?
45. What is the primary role of process scheduling?
46. A process enters the waiting state when it:
47. When a process is currently executing on the CPU, its state is:
48. The state where a process is ready to be executed by the CPU is called:
49. Which of the following is NOT a typical state of a process?
50. What is a process in the context of operating systems?