According to Clement Chiang <cl...@cisco.com>:
: 1. Is EXPECT (5.25?) a thread safe code? If it not, does anyone
: in the world try to make it thread safe and where can I find it?
Unless you build it on a Tcl that is thread safe, it couldn't be very
safe, could it?
So far, there's no formally released and supported Tcl from J. Ousterhout
that's thread safe. There is an alpha release of Tcl 8.1, but it's
a very early release.
However, what I _don't_ know is whether anyone has compiled Expect
along with PtTcl - which claims to be a thread safe version of Tcl 7.6.
Also, I wonder if the Windows NT version of Expect is thread safe.
Don Libes, have you addressed these issues in a paper? Do you
know of anyone who has?
--
<URL:mailto:lvi...@cas.org> Quote: In heaven, there is no panic,
<*> O- <URL:http://www.teraform.com/%7Elvirden/> only planning.
Unless explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
Unless you build it on a Tcl that is thread safe, it couldn't be very
safe, could it?
So far, there's no formally released and supported Tcl from J. Ousterhout
that's thread safe. There is an alpha release of Tcl 8.1, but it's
a very early release.
However, what I _don't_ know is whether anyone has compiled Expect
along with PtTcl - which claims to be a thread safe version of Tcl 7.6.
Also, I wonder if the Windows NT version of Expect is thread safe.
Don Libes, have you addressed these issues in a paper? Do you
know of anyone who has?
Expect 5.25 is not thread-safe, however you can get the effect that
the original poster wanted without using threads - Expect directly
supports interaction with multiple processes simultaneously. Indeed,
my book has a chapter called "Handling Multiple Processes Simultaneously"
Don
> know of anyone who has?
>
> Expect 5.25 is not thread-safe, however you can get the effect that
> the original poster wanted without using threads - Expect directly
> supports interaction with multiple processes simultaneously. Indeed,
> my book has a chapter called "Handling Multiple Processes
> Simultaneously"
>
> Don
I did compile with ptTcl. But event compile with PtTcl still can
not ensure expect thread safe. Am I correct?.
In other word, I can not invok expect scripts cocurrently from my C
code.
Even though my script only do telnet and retrive/compare data,
nothing else?
clement
If this is of interest, we have modified tcl debug (and therefore expect
I assume) to be thread-safe. The changes mostly involved maintaining a
separate context for each instance of the expect extension.
We linked into our multi-threded tcl engine (based on 8.1a).
Ranga.