July 2015
Intermediate to advanced
558 pages
13h 31m
English
Threads represent concurrent streams of execution within a process. They are a low-level abstraction for concurrency and are exposed by the system programming libraries or system call interfaces of operating systems, for example, POSIX threads, Win32 Threads. On multiprocessor or multicore systems, operating systems can schedule two threads from the same process to run in parallel on two different cores, thus achieving true parallelism.
Threads are a popular mechanism to abstract concurrent tasks that can potentially run in parallel with other such tasks. Done right, threads can simplify program structure and improve performance. However, concurrency and parallelism introduce complexities and nondeterministic ...
Read now
Unlock full access