11- Locks
3:17
2 דוברים
2 פרקים
79 קטעים
דוברים
פרקים
-
0:03
Another strategy for preventing race conditions and visibility problems is to prevent multiple threads from accessing an object at the same time. This is called synchronization. So we have to synchronize or coordinate multiple threads tryin…
-
1:07
So, multiple threads are racing to update the total bytes field. Now, let's see how we can use a log to solve this problem. So, back to our download status class, we want to ensure that only one thread at a time can increment this field. So…