In this video, learn that a livelock can occur when multiple threads or processes are actively responding to each other to resolve a conflict, but in such a way that it prevents them from making a program. Gain an understanding that how a mechanism such as thread priority or random delay may be required to resolve the livelock.
- Our greed and competition for sushi … has led us to a life of deadlocks and starvation. … There's only one piece of sushi left … and I can see you're still hungry, … you should have it. … - Thank you my dear, … but I can see you're still hungry too. … And I would feel like a lousy husband … if I allowed my wife to go hungry. … You should have the last bite. … - Oh but I can't bear to see you hungry, … you shall have the final bite. … - Well this is annoying. … We've entered into another tricky situation … known as a livelock. … A livelock looks similar to a deadlock … in the sense that two threads are … blocking each other from making progress, … but the difference is that the threads in a livelock … are actively trying to resolve the problem. … A livelock can occur when two or more threads … are designed to respond to the … actions of each other. … Both threads are busy doing something, … but the combination of their efforts … prevent them from actually making progress … and accomplishing anything useful. …
- 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.