Tagged in

Multithreading

CodeChain
CodeChain
Programmable multi-asset chain
More information
Followers
435
Elsewhere
More, on Medium

Read-writers lock — Accessing shared resources

In multithreaded programming, when accessing a shared resource, a mutex is used to ensure that not more than one thread is allowed to change resources simultaneously. A mutex guarantees safety because it restricts the number of threads accessing a…