On 2/25/12 2:53 PM, Tcl Bliss wrote:
> Multi-threaded programming in Tcl is super simple. ...
> Although multi-threaded programming is very simple to start with, you
> only need it in cases where your application reaches 100% CPU usage or
> you have some code that could block your application from responding
> for long periods of time, otherwise you just waste memory and reduce
> performance by needlessly creating and using threads.
And where "you have some code that could block your application from
responding for long periods of time" is normally true in other languages,
like waiting on data to appear at a socket -- Tcl steps in with the event loop.
--
+------------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC |
| Email:
Gerald...@kng-consulting.net |
+------------------------------------------------------------------------+