Ace
Learns
Theme
light_mode
dark_mode
light_mode
Light
dark_mode
Dark
monitor
Auto
Open main menu
menu_open
×
Home
History
Geography
Astronomy
Physics
Chemistry
Biology
Agriculture
Sports
Computer Science
Articles
Contact Us
MCQ Categories
Articles
Home
Contact Us
Home
»
Computer Science
»
Operating System
»
Synchronization in Operating System
Operating System
unfold_more
double_arrow
Deadlock in Operating System
double_arrow
Inter-Process Communication
double_arrow
Process
double_arrow
Process Schedulers
double_arrow
Synchronization in Operating System
double_arrow
Threads in Operating System
quiz
Synchronization in Operating System
1.
Which synchronization mechanism is commonly used to enforce mutual exclusion?
A)
Semaphore
B)
Condition Variable
C)
Barrier
D)
Shared Memory
Answer
keyboard_arrow_down
keyboard_arrow_up
A) Semaphore
Explanation
2.
What is another term for the bounded buffer problem in synchronization?
A)
Dining Philosophers
B)
Readers-Writers
C)
Producer-consumer problem
D)
Mutex challenge
Answer
keyboard_arrow_down
keyboard_arrow_up
C) Producer-consumer problem
Explanation
3.
What is a spin lock in synchronization?
A)
A lock that polls indefinitely, wasting CPU cycles
B)
A lock that waits in a sleep state until it can be acquired
C)
A deadlock
D)
A blocked process
Answer
keyboard_arrow_down
keyboard_arrow_up
A) A lock that polls indefinitely, wasting CPU cycles
Explanation
4.
What type of semaphore allows only one thread or process to access a section at a time?
A)
Counting semaphore
B)
Binary semaphore
C)
Both A and B
D)
None of these
Answer
keyboard_arrow_down
keyboard_arrow_up
B) Binary semaphore
Explanation
5.
What is the purpose of a barrier in thread synchronization?
A)
To prevent race conditions in critical sections
B)
To allow multiple threads to execute simultaneously
C)
To coordinate the progress of multiple threads at specific points
D)
To introduce priority inversion between threads
Answer
keyboard_arrow_down
keyboard_arrow_up
C) To coordinate the progress of multiple threads at specific points
Explanation
Quick Links
Biology
chevron_right
Human Diseases
chevron_right
Essential Nutrients
chevron_right
Genetics
chevron_right
Plants
Chemistry
chevron_right
Matter and Measurements
chevron_right
States of Matter and Solutions
chevron_right
Chemical Bonding
chevron_right
Electronic Structure and Periodicity
Sports
chevron_right
Olympics
chevron_right
Cricket
chevron_right
Common Wealth Games
chevron_right
Football
History
chevron_right
Enlightenment and Modern ideas
chevron_right
Revolution and Counter-Revolution
chevron_right
Ancient Civilizations
chevron_right
Medieval World History