Cold Help System: Programming: ColdC Reference Manual: Implementation: Tasks and Frames


The state of a method as it is being evaluated is called the Execution Frame. Each frame has a few unique values associated with it, which may or may not propagate to the next execution frame.

One or more frames executed in a series is called a Task. Tasks will originate from either a connection, a heartbeat, or by a fork in another task. There is no restriction on how many frames a task can execute.

It is possible to stop an executing frame, refresh the ticks it has and then continue executing. This is called Preempting. When a task is preempted it stops executing and is queued behind other current tasks. When these tasks are finished executing the preempted task continues, with a refreshed tick amount. Further information is given in the following sections:



Methods | Tasks and Frames | Errors | Security | Networking | Regexps | Files


the Cold Dark