A ___________ is a synchronization primitive that provides exclusive access to the shared resource.
- Lock
- Monitor
- Mutex
- Semaphore
A mutex is a synchronization primitive that allows only one thread to access a resource at a time, preventing data races and ensuring thread safety.
Loading...
Related Quiz
- Which sorting algorithm has the best time complexity in the worst-case scenario?
- What is thrashing, and how can it be prevented in memory management systems?
- Angular's ___________ feature helps maintain consistent state across components.
- The ___________ algorithm is used to find the shortest paths between nodes in a weighted graph.
- _________ is a Git command used to rewrite commit history.