April 2018
Intermediate to advanced
300 pages
7h 41m
English
Although there are many benefits to multithreading, there are some caveats that need to be thoroughly addressed when writing multithreaded applications. If the machine is a single or two-core machine and the application is creating lots of threads, the context switching between these threads will slow the performance:

The preceding diagram depicts the program running on a single-processor machine. The first task executes synchronously, and runs comparatively faster than the three threads running on the single processor. The system executes the first thread, then waits for a while before moving on to execute the second ...
Read now
Unlock full access