Question OS-SYNC-0003
EasyWhat is a mutex lock mainly used for?
- A.
Scheduling the CPU
- B.
Allocating memory
- C.
Show answer and explanation
Answer: D
A thread acquires the mutex before entering the critical section and releases it on leaving.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Process Synchronization question
What is a mutex lock mainly used for?
Scheduling the CPU
Allocating memory
Answer: D
A thread acquires the mutex before entering the critical section and releases it on leaving.
Reading files faster
Mutual exclusion: letting only one thread into a critical section at a time