In this video, learn how to recognize that if a thread unexpectedly terminates while it possesses the lock on a mutex, then other threads may never be able to acquire that mutex. Gain an understanding of why it is important to ensure that threads always release their lock on a mutex before terminating.
- Now that we figured out how to avoid a deadlock … between our two philosophers using chopsticks, … we can return to our routine of eating and philosophizing. … I'm ready for another piece of sushi … so I'll pick up the first chopstick, then the second one. … And I think I left the refrigerator open. … - Oh, that was rude of him. … We've entered another form of a deadlock … through thread death. … If one thread or process acquires a lock, … and then terminates because of some unexpected reason, … it may not automatically release the lock … before it disappears. … That leaves other tasks like me stuck waiting for a lock … that will never be released and getting hungry. … - Sorry about that. … Let's look at some code. … …
- Parallel vs. sequential computing
- Shared vs. distributed memory
- Execution scheduling
- Thread lifecycle
- Mutual exclusion
- Synchronized methods
- Checking for liveness
Skill Level Advanced
Java Essential Training: Objects and APIswith David Gassner2h 46m Intermediate
Java Essential Training: Syntax and Structurewith David Gassner3h 9m Intermediate
1. Parallel Computing Hardware
2. Threads and Processes
3. Mutual Exclusion
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.