Seven Concurrency Models in Seven Weeks


More Object-Oriented than Objects

Functional programming avoids the problems associated with shared mutable state by avoiding mutable state. Actor programming, by contrast, retains mutable state but avoids sharing it.
Computer graphics is all about manipulating data—huge amounts of data. And doing it quickly.

GPGPU Programming

To create a complete program, we need to embed our kernel in a host program that performs the following steps:

  1. Create a context within which the kernel will run together with a command queue.
  2. Compile the kernel.
  3. Create buffers for input and output data.
  4. Enqueue a command that executes the kernel once for each work-item.
  5. Retrieve the results.