The operating system determines when each thread is scheduled to execute on the CPU. As a programmer, see how you often cannot control the relative order in which threads are executed.
- 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 a 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 computing architectures
- Shared vs. distributed memory
- Thread vs. process
- Execution scheduling
- The thread lifecycle in C++
- Mutual exclusion
- Locking in recursive and shared mutexes
- Acquiring a lock on a mutex with a try lock
- Resolving deadlock and livelock conditions
Skill Level Advanced
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.