Книга: Embedded Linux Primer: A Practical, Real-World Approach
17.3.1.1. Spinlock Converted to Mutex
17.3.1.1. Spinlock Converted to Mutex
The real-time patch converts most spinlocks in the system to mutexes. This reduces overall latency at the cost of slightly reduced throughput. The benefit of converting spinlocks to mutexes is that they can be preempted. If Process A is holding a lock, and Process B at a higher priority needs the same lock, Process A can preempt Process B in the case where it is holding a mutex.
Похожие страницы
- 3.2.3 Using mutexes for atomicity
- 6.2.3 Mutual Exclusion (Mutex) Semaphores
- 13.2.2. Синхронизация доступа к ресурсам (mutex.rb)
- 3.2.5 Using more than one mutex
- 3.2 Mutexes
- 3.2.1 Creating and destroying a mutex
- 3.2.2 Locking and unlocking a mutex
- 3.2.2.1 Nonblocking mutex locks
- 3.2.4 Sizing a mutex to fit the job
- 5.2.1 Mutex attributes
- 5.5.5 Priority-aware mutexes
- 5.5.5.1 Priority ceiling mutexes