Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 28s8 days 9 hours 54 minutes 28 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 28s8 days 9 hours 54 minutes 28 seconds.

Sign in to watch this lesson
Threads and Their Lifetimes · 3:46
Concurrency means several tasks in progress at once; parallelism means tasks running at the same instant on different cores. Following C++ Concurrency in Action, we see one core time-slice two tasks and two cores run them solid, the two reasons to use threads (separation of concerns and performance, as task or data parallelism), and then measure on a Mac what a thread costs and how large the work must be before eight threads beat one.