Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Ash[Ruined By Ruby] map and implements a simple system of sending messages to coordinate access to shared data from multiple concurrent threads.
7th May 2022, 1:11 PM
BroFar
BroFar - avatar
+ 2
Ash[Ruined By Ruby] Mutex is used to prevent deadlock. Mutex means Mutual Exclusion. Deadlock means when two thread try to access same resources. So mutex control the access of resource untill the first thread complete the task. After completing task by first thread second thread will access same resource.
7th May 2022, 1:16 PM
A͢J
A͢J - avatar