Книга: 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.


Генерация: 0.047. Запросов К БД/Cache: 0 / 0
поделиться
Вверх Вниз