Operating systems: structure, services, system calls, process management, interprocess communication and synchronization (semaphores, critical-section problem). - Question Bank
1. What is the main advantage of kernel-level threads over user-level threads?
2. In a kernel-level thread implementation, which entity is directly managed by the operating system scheduler?
3. Which of the following is an example of a user-level thread implementation?
4. What does the term 'starvation' refer to in process scheduling?
5. Which of the following is a method for preventing deadlock?
6. What is the main purpose of the 'sleep()' system call?
7. A 'blocking send' in message passing IPC means:
8. Which system call is used by a process to terminate itself?
9. What is the primary function of a scheduler in an operating system?
10. Which of the following operating system structures is known for its modularity and extensibility?
11. In the context of concurrency, what is a 'race condition'?
12. What is the main challenge in implementing a Round Robin scheduling algorithm?
13. Which IPC mechanism allows processes to send and receive messages without sharing memory directly?
14. What is the purpose of the 'Ready' state in process management?
15. When a process makes an I/O request, it typically transitions to which state?
16. Which of the following is an example of a system call used for file management?
17. What is the primary advantage of a microkernel design?
18. In a microkernel architecture, which of the following services are typically moved out of the kernel into user space?
19. Which operating system structure involves a monolithic kernel that includes most OS services within a single large process?
20. What is a 'daemon' process in Unix-like operating systems?
21. Which of the following is NOT one of the four necessary conditions for deadlock?
22. A deadlock occurs when:
23. Which of the following synchronization techniques can lead to 'busy waiting' (also known as spinning)?
24. What is the primary goal of the 'Producer-Consumer' problem in concurrency?
25. In a preemptive scheduling algorithm, a running process can be interrupted by the scheduler if:
26. Which of the following scheduling algorithms is non-preemptive?
27. The 'exec()' system call is used to:
28. Which system call is typically used to create a new process?
29. What does 'context switching' refer to in an operating system?
30. Which of the following is a benefit of using threads over processes?
31. What is a 'thread'?
32. The Process Control Block (PCB) is a data structure that contains:
33. In the context of operating systems, what is a 'process'?
34. Which of the following is a classic example of a synchronization problem that can be solved using semaphores?
35. What is a potential problem if a process is preempted while it is in its critical section?
36. A mutex (mutual exclusion) lock is primarily used for:
37. Which type of semaphore is initialized to 1 and is used to ensure mutual exclusion?
38. The `signal()` operation on a semaphore (also known as V operation) typically:
39. The `wait()` operation on a semaphore (also known as P operation) typically:
40. A semaphore is a synchronization primitive that can be thought of as:
41. Which of the following is a fundamental requirement for solving the critical-section problem?
42. A critical section is a segment of code that:
43. Interprocess Communication (IPC) is essential for:
44. Which scheduling algorithm aims to minimize the average waiting time by executing the process with the smallest execution time first?
45. What is the main purpose of process scheduling?
46. Which of the following is NOT a typical state of a process?
47. A system call is best defined as:
48. Which operating system service is responsible for allocating CPU time to different processes?
49. What is a key function of the operating system's kernel?
50. Which of the following best describes the primary role of an operating system?