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

Is expect thread safe?

174 views
Skip to first unread message

lvi...@cas.org

unread,
May 21, 1998, 3:00:00 AM5/21/98
to

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.

Don Libes

unread,
May 21, 1998, 3:00:00 AM5/21/98
to

In article <6k19hj$m9h$3...@srv38s4u.cas.org> lvi...@cas.org writes:
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?

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

Clement Chiang

unread,
May 21, 1998, 3:00:00 AM5/21/98
to Don Libes

Don Libes wrote: 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

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


M.Ranganathan

unread,
Jun 2, 1998, 3:00:00 AM6/2/98
to

In article <s6a7m3f...@muffin.nist.gov |, Don Libes <li...@nist.gov> wrote:
|In article <6k19hj$m9h$3...@srv38s4u.cas.org> lvi...@cas.org writes:
| 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?
|
|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

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.

sachin shelke

unread,
Mar 18, 2016, 5:01:32 AM3/18/16
to
On Thursday, 21 May 1998 12:30:00 UTC+5:30, lvi...@cas.org wrote:
> 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.

Is Expect's latest version is thread safe ?. I have my scripts which had used Expect and now I want to use Thread in TCL with that. But I am getting seg_fault. Please let me know the solution. My main requirement is parallel handling in TCL.

Uwe Klein

unread,
Mar 18, 2016, 1:50:08 PM3/18/16
to
Am 18.03.2016 um 10:01 schrieb sachin shelke:
> Is Expect's latest version is thread safe ?. I have my scripts which
> had used Expect and now I want to use Thread in TCL with that. But I
> am getting seg_fault. Please let me know the solution. My main
> requirement is parallel handling in TCL.
>

use events. expect already is event driven ( input )

( in most cases where users think they need threads they don't :-)

Can you talk about what you want to achieve?

uwe

0 new messages