September 2025
Intermediate to advanced
552 pages
14h 5m
English
Threads are another variation of control flow that allows us to pursue several tasks concurrently. Here, a task is a part of the job to be executed by a program such that different tasks can be done with no or little interaction between each other.
Our main example will be a primitive game that we call B9, which is a variant of Conway's Game of Life, (see Gardner (1970)). It models a matrix of primitive “cells” that are born, live, and die according to very simple rules. We divide the game into four different tasks, each of which proceeds ...
Read now
Unlock full access