Learn how to differentiate between concurrent execution versus parallel execution and recognize use cases for each one in this video. See a demonstration on multiple threads executing concurrently on a single processor and then executing in parallel on multiple processors to achieve greater throughput, and gain an understanding of why parallel execution requires parallel hardware.
- Just because a program is structured … to have multiple threads or processes … does not mean they'll necessarily execute in parallel. … A concept that's closely related to parallel execution … but often gets confused with it is concurrency. … Concurrency refers to the ability … of an algorithm or program … to be broken into different parts … that can be executed out of order … or partially out of order … without affecting the end result. … Concurrency is about how a program is structured … and the composition of independently executing processes. … Consider this recipe to make a salad, … which includes several steps … that involve slicing and chopping vegetables. … We can decompose those steps … into a collection of concurrent tasks … because the relative order … in which we do them doesn't matter. … They're order independent. … To keep things simple, … let's just focus on two of those tasks for now. … I'll chop onions. … - And I'll slice cucumbers. … This knife represents our computer's processor. …
- 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.