Re: Own implementation of multithread



Donald Arseneau wrote:
It is my understanding, and I am anxious to have any wrong
understandings corrected, that you don't even need to compile
Tcl with --enable-threads, which is only necessary if Tcl
manages the threads and communication between them.

That's wrong, because when Tcl's built unthreaded it uses some static
data allocation strategies (for things that are otherwise shared between
threads) that are deeply wrong when more than one thread is in use. When
built threaded, such additional locks as are required are added.

If you're using Tcl from multiple threads, you should use a
thread-enabled build. If you're wanting to do communication between
threads or scripted control of them, the Thread extension is commended
as providing the tools required. :-)

Donal.
.



Relevant Pages

  • Re: Serial port causing tcl to freeze
    ... What does it mean, when your Tcl freezes? ... Is the event loop still running? ... The serial communication might be blocked by handshake, e.g. if the receivind side dropped the CTS or DSR line, or even by software handshake. ... I have a problem where the using the serial port causes tcl to freeze ...
    (comp.lang.tcl)
  • Re: Own implementation of multithread
    ... I have already built the TCL using --enable-threads. ... Each interpreter will need to eval a script. ... Tcl with --enable-threads, which is only necessary if Tcl ... manages the threads and communication between them. ...
    (comp.lang.tcl)
  • Re: using netcat in tclsh
    ... Each one can start the communication (by typing). ... How to declare the channels at once for both directions in tcl? ...
    (comp.lang.tcl)
  • Re: building a starkit of Img?
    ... Because if I use my system Tcl, some things are going to be different, ... compile stuff, so that that ... Not yet:-) I'm actually trying to just do an Img starkit, ... > truly simple, quick, and robust installs are acceptable. ...
    (comp.lang.tcl)
  • Re: CEPTCL: Doesnt RX multicast, has anyone seen it work before?
    ... on my Linux. ... gave me are set up to compile for windows. ... has all of the files and the makefile is set up for Linux too. ... please modify the Makefile for proper Tcl path. ...
    (comp.lang.tcl)