In this video, learn how the operating system determines when each thread is scheduled to execute on the CPU and gain an understanding of how the programmer often cannot control the relative order in which threads execute.
- Threads don't just execute whenever they want to. … A computer might have hundreds of processes, … with thousands of threads, that all want their turn … to run on just a handful of processors. … So, how do they decide who goes first? … - That's the operating system's job. … The OS includes a scheduler that controls when different … threads and processes get their turn to execute on the CPU. … The scheduler makes it possible for multiple programs … to run concurrently on a single processor. … When a process is created and ready to run, … it gets loaded into memory and placed in the ready queue. … Think of these as cooks in the … kitchen that are ready to work. … The scheduler is like the head chef that tells the … other cooks when they get to use the cutting board. … It cycles through the ready processes so they … get a chance to execute on the processor. … If there are multiple processors, then the OS will … schedule processes to run on each of them, … to make the most use of the additional resources. …
- 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.