Newsgrouper 🗨 💬 🗯 💭

Article with message-id: <[email protected]>

From: [email protected] (Colin Macleod)
Newsgroups: comp.lang.tcl
Subject: Re: TCL and threads
Date: 1997/11/25

[email protected] wrote:
: Can an interp be used in two different threads without protection? If
: not, Can different interps be used in two different threads, do different
: interps share something making this usage impossible?

You don't say what OS you are using or what variety of threads,
but if it's Posix threads (pthreads) on Unix you should look
at PtTcl from http://users.vnet.net/drh/pttcl.html .
This is tcl7.6b1 modified to be thread-safe and with some additional
thread-oriented commands, plus corrsponding C calls.

I have been using it for a few months on AIX4.1 (the developers
work on Linux) and have found it fairly solid.  However I
have found and fixed a number of bugs.  I have reported all these
back to the authors (Richard Hipp and Nike Cruse) but they
have not so far updated their distribution with my fixes.
Also the version I am working with, which was available from
their web site over the summer, was later replaced on the web
site with a version which appears to be older - it's identical
to a distribution I downloaded in the spring.

For these reasons I have tarred up the version I am working on
and made it available at:
ftp://ftp.mcs.dundee.ac.uk/pub/cmacleod/pttcl.tar.gz

If you find it useful please let me know, or if you find more problems.

PS: The Tcl team at Sun seem to be thinking about putting thread
support into a future version of the official Tcl distribution,
but there's no definite info on if/when this will happen.

--
<<<<<<<<<<<^^^^^^^>>>>>>>>vvvvvvv<<<<<<<<<<<^^^^^^^>>>>>>>>vvvvvvv
Colin Macleod, software engineer, Intrasoft SA, Athens, Greece
email (remove added spaces to use) :  macleod @ intrasoft . gr
<<<<<<<<<<<^^^^^^^>>>>>>>>vvvvvvv<<<<<<<<<<<^^^^^^^>>>>>>>>vvvvvvv