Version 4 of Does my hardware controller need to use threads?

Updated 2006-09-07 14:34:21

In Tcl-land, we often discourage use of threads, for reasons documented elsewhere [explain]. Here's an example of how to think about design involving threads:

Briefly, Tcl applications need threads when they rely on long-running external resources, like database look-up or communications with physical devices [references]. Even in the latter case, though, there are a number of alternatives:

[Use of dqkit as a great convenience.]

rfoxmich (and SO and CL) say(s): "... timeouts belong inside the extension that interfaces with the hardware itself."