Segmenting long-running processes in a multi-tasking environment

The author describes a technique for segmenting long running processes including check points, whereat the check flag is sampled for determining whether the process should continue.