I concur.  This is the best solution in your situation.  

Or there are other alternatives.  I had to build a multithreaded
application much like you are describing.  After months of hacking with
Perl, I decided to break a piece off of threads in java.  I haven't
looked back.

-Daniel 

-----Original Message-----
From: Christopher Fowler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 07, 2007 8:51 AM
To: BTR Naidu
Cc: [email protected]
Subject: Re: Help needed

On Wed, 2007-02-07 at 14:19 +0530, BTR Naidu wrote:
> I wanted to write a perl script in which there are 10 threads created
> and
> all these 10 threads should be executed in 10 different command
> window.  The
> thread is running under windows.

I don't really think this is possible.  Especially with Winders.  If I
had to solve it I think I would write 2 programs

1.  The main program that spawns 10 threads
2.  A client program

You would want to run the client in 10 CMD prompt windows.  It would
connect to the main program and then data would be piped back and forth
between the client and the main program.  You would need a way for each
client to identify itself.  The main program could then match the
correct thread to the correct client.

In UNIX I would probably do this via pseudo tty's. Create a thead.  That
thread grabs a pseudo.  Fork a process and run an xterm on that pseudo
then the thread pipes data back and forth.  A bit if a PITA.



Reply via email to