randu.org/tutorials/threads/
1 Users
0 Comments
11 Highlights
0 Notes
Tags
Top Highlights
is the method of serializing access to shared resources.
to be modifying a variable that is already in the process of being modified by another thread!
where the value is in the process of being updated and another thread reads an old value.
a mutex is a lock that one can virtually attach to some resource. If a thread wishes to modify or read a value from a shared resource, the thread must first gain the lock.
because other threads will have to wait.
that serializes access to the shared resource.
of a mutex as a safe with only one key (for a standard mutex case)
Only one person can have the key to the chest at any time, therefore, is the only person allowed to look or modify the contents of the chest at the time it holds the key.
the possibility of deadlock.
by making sure threads acquire locks in an agreed orde
A thread is a sequence of such instructions within a program that can be executed independently of other code.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.