Concurreny in Tcl: Weaving Threads


In the previous article we talked about pseudo-concurrency through events and mentioned threads as one possible solution to some of their limitations. This second article expands on that.

Threads compared to Events

First, in contrast to events, only the C level foundations are built into the core. Script access to threads requires a package: Thread.