Skip to content

Mutex practice problems in Rust

Difficulty:
Category:
Tag:

Showing 7 of 7

Status Title Difficulty
Arc gives you sharing, not mutability Easy
Condvar: a wakeup is a hint, the predicate is the truth Hard
Deadlock by lock ordering: the guarantee Rust does not give you Hard
Mutex and MutexGuard: you cannot forget to unlock Easy
Poisoning: what a panic does to a lock Medium
Rc<RefCell<T>> vs Arc<Mutex<T>>, and the arena that beats both Medium
Sync: T is Sync exactly when &T is Send Medium