Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Threads in TCL?

5 views
Skip to first unread message

Prabhu

unread,
Mar 20, 2006, 1:12:18 AM3/20/06
to
hi everyone,

i'm working in TCL/tk8.0 in unix. i want to implement Threads in TCL
scripts. are there any TCL commands for implementing Threads. i learn
that using some functions in C we can create threads for TCL Script.
but my project must only have TCL scripts and no C code.

can anyone help me in this regard.

thanks,
Prabhu

Paul Whitfield

unread,
Mar 20, 2006, 1:49:45 AM3/20/06
to

Michael Schlenker

unread,
Mar 20, 2006, 3:59:17 AM3/20/06
to
Tcl/Tk 8.0 is rather ancient. There is a good thread extension for more
recent versions of Tcl (especially 8.4.x) which allows script level
access to threads.

Michael

Cameron Laird

unread,
Mar 20, 2006, 8:08:03 AM3/20/06
to
In article <441e4fd5$0$23193$5a62...@per-qv1-newsreader-01.iinet.net.au>,
.
.
.
A. All true.
B. "I'm working in TCL/tk8.0 ..." concerns me.
I don't know whether that means you are
committed to the specific 8.0 sources (in
which case we need to talk about old copies
of extensions from the AOLserver gang), or
are simply reporting the depth of your
current experience.
C. I have an even greater concern that "I
want to implement threads" might actually
be "code" for, "I am on a project with
concurrency requirements, and don't realize
that threading is only one of several con-
currency mechanisms Tcl offers, and likely
not the one best for my situation."

Gerald W. Lester

unread,
Mar 20, 2006, 10:33:42 AM3/20/06
to

Tcl/Tk 8.0 is old, you should upgrade to 8.4.x. There is a very good Thread
package for 8.4, but I don't remember how stable it was with 8.0.

Also, do you really need Threads -- they are *very* rarely needed in Tcl.
Most things are better handled with event driven programing in Tcl.

Why don't you describe what you want to do a little more -- the problem not
your proposed solution?

--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+

Don Porter

unread,
Mar 20, 2006, 10:47:19 AM3/20/06
to
Gerald W. Lester wrote:
> Tcl/Tk 8.0 is old, you should upgrade to 8.4.x. There is a very good Thread
> package for 8.4, but I don't remember how stable it was with 8.0.

The first version of Tcl that was thread-safe in its released state
was Tcl 8.1.

--
| Don Porter Mathematical and Computational Sciences Division |
| donald...@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|

0 new messages