Implicit Threading

Thread Pools

Java Examples

Factory methods for creating new threads in Java:

Fork-Join

Java Examples
Even more Java

Multiple threads (tasks) are forked, and then joined.

Look at it from left to right (makes more sence)

OpenMP

C++ Example

loop in parallel

#pragma omp parallel // c++

Create as many threads as there are cores

Grand Central Dispatch

Types of Dispatch Queue

concurrent – blocks removed in FIFO order but several may be removed at a time

serial – blocks removed in FIFO order, queue is per process, called main queue

Note: Programmers can create additional serial queues within program