What is Mutex?
A lock that only one thread can hold at a time. Typically a thread that cannot get it sleeps and yields the CPU, and the OS wakes it when the lock is released.
Field: Multicore & Synchronization
A lock that only one thread can hold at a time. Typically a thread that cannot get it sleeps and yields the CPU, and the OS wakes it when the lock is released.
Field: Multicore & Synchronization
When a mutex cannot be acquired, the thread is put into a waiting state and the CPU goes to other threads; the OS wakes it when the lock is released.
Which correctly compares a mutex (a lock that sleeps while …Long waits call for a mutex that sleeps, and some locks spin briefly before sleeping.
In which situation is a spinlock least suitable?If a high-priority task waits for a mutex held by a low-priority task, it must wait until the low task releases it.
Which describes priority inversion in an RTOS?Spinlock Priority inversion Real-time operating system (RTOS) Context switch CPU time Priority inheritance ABA problem Acquire-release semantics Atomic instruction Barrier synchronization