In this section of Operating System Process Synchronization.it contain Operating System Process Synchronization – The Critical-Section Problem MCQs (Multiple Choice Questions Answers).All the MCQs (Multiple Choice Question Answers) requires in detail reading of Operating System subject as the hardness level of MCQs have been kept to advance level.
1. A Race condition refers to
- A situation where several processes access and manipulate the same data concurrently
- A situation where Single process access and manipulate the same data concurrently .
- A situation where No process access and manipulate the same data concurrently.
- None of the above
2. Each process has a segment of code, called a ____________,in which the process may be changing common variables, updating a table, writing a file, and so on
- None-critical section
- Critical section
- Exit Section
- Entry Section
3. In Critical section
- several processes access and manipulate the same data concurrently
- No process access and manipulate the same data concurrently
- when one process is executing in its critical section, no other process is allowed to execute in its critical section
- None of the above
4. A solution to the critical-section problem must satisfy which of the following three requirements:
I. Mutual exclusion
II. Progress
III. Un-Bounded waiting
IV. Bounded waiting
- 1,2 ,3
- 2,3,4
- 1,3,4
- 1,2,4
5. Which of the following condition stands true for Mutual Exclusion?
- No process access and manipulate the same data concurrently
- If process Pi is executing in its critical section, then no other processes can be executing in their critical sections
- several processes access and manipulate the same data concurrently
- None of above
6. Which of the following condition stands true for Progress?
- When a thread is executing in its critical section, no other threads can be executing in their critical sections.
- If no thread is executing in its critical section, and if there are some threads that wish to enter their critical Sections, then one of these threads will get into the critical section.
- several processes access and manipulate the same data in the critical section
- All of the above
7. Which of the following condition stands true for Bounded Waiting?
- When a thread is executing in its critical section, no other threads can be executing in their critical sections
- If no thread is executing in its critical section, and if there are some threads that wish to enter their critical sections, then one of these threads will get into the critical section.
- several processes access and manipulate the same data concurrently
- After a thread makes a request to enter its critical section, there is a bound on the number of times that other threads are allowed to enter their critical sections, before the request is granted
8. A preemptive kernel allows
- a process to be preempted while it is not running in kernel mode
- a process to be preempted while it is running in kernel mode
- a process to be preempted while it is running in User mode
- does not allow a process running in kernel mode to be preempted
9. nonpreemptive kernels
- a process to be preempted while it is not running in kernel mode
- a process to be preempted while it is running in kernel mode
- a process to be preempted while it is running in User mode
- does not allow a process running in kernel mode to be preempted
a kernel-mode process will run until it exits kernel mode, blocks,or voluntarily yields control of the CPU.
10. a nonpreemptive kernel is essentially free from race conditions
- True
- False
a nonpreemptive kernel is essentially free from race conditions on kernel data structures, as only one process is active in the kernel at a time
11. a preemptive kernel is essentially free from race conditions
- True
- False
they must be carefully designed to ensure that shared kernel data are free from race conditions. Preemptive kernels are especially difficult to design for SMP architectures, since in these environments it is possible for two kernel-mode processes to run simultaneously on different processors.