perl.ithreads...RE: Work Crew example by Chris Fowler- April 24, 2008 On Thu, 2008-04-24 at 17:21 -0700, Wong, Danny H. wrote:> Thanks. I&39;ll take a look at it and give it a go... > Bug> print "$target:DOWNn"; print W "$target:DOWNn";> else > print "$target:UPn";print W "$target:UPn";Even with those changes the pipes don&39;t work so well.GUIs are a better example of threads. In a GUI you need threads to dowork and then update an area.Have you ever written a Java Swing application that...http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1276.html RE: Work Crew example by Chris Fowler- April 24, 2008 On Thu, 2008-04-24 at 17:06 -0700, Wong, Danny H. wrote:> Thanks for your comments. Do you have a perl example on how it can be> done I&39;ve read comments like yours on the websites, but don&39;t have a> concrete example. I&39;m trying to figure out how to implement a copy> function with work crew thread model. I&39;m learning how to use the> power> of threads and of course using it correctly...Honestly I&39;ve not worked in perl threads in a long time. I got startedand ran.http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1275.html Re: Work Crew example by Chris Fowler- April 24, 2008 On Thu, 2008-04-24 at 16:23 -0700, Wong, Danny H. wrote:> Hi GURUS,Thanks for the compliment :)> I&39;m trying to implement a threaded program using work crew model. I> was wondering if someone can provide an example. I&39;m trying to copy some> files to say 100 machines ( for this example... 100 directories would be> work as well) as I&39;m looking for a real example of how to use the work> crew model thread. thanks.> A while back I worked on a program that did...http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1274.html Work Crew example by Wong, Danny H.- April 24, 2008 Hi GURUS, I&39;m trying to implement a threaded program using work crew model. Iwas wondering if someone can provide an example. I&39;m trying to copy somefiles to say 100 machines ( for this example... 100 directories would bework as well) as I&39;m looking for a real example of how to use the workcrew model thread. thanks. - - - - - Cisco - - - - -This e-mail and any attachments may contain information which is...http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1273.html RE: How to build perl with threads and which version supports itand where do I get complete information about this by Karnati, Ravi Kumar- April 20, 2008 Hi Eric,Thanks for your help .Ravikumar.________________________________From: rybskejgmail.com mailto:rybskejgmail.com On Behalf Of Eric RybskiSent: Saturday, April 19, 2008 1:30 AMTo: Karnati, Ravi Kumar (STSD)Cc: perl-ithreadsperl.orgSubject: Re: How to build perl with threads and which version supports it and where do I get complete information about thisRavi, Are you looking for general help on how to build a perl binary from source I believe you can simply do:.Configure -Duseithreadsin..http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1272.html Re: Perl threads under Windows by Christopher Fowler- April 20, 2008 On Sun, 2008-04-20 at 08:32 -0700, Dean Arnold wrote:> ithreads creates a new Perl interpretter in each new threadI&39;m hoping that Parrot will implement some form of threading like POSIXthreads. I guess that would not work under Windows but you could doPOSIX in UNIX and Windows type threads in Windows.http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1271.html Re: Perl threads under Windows by Dean Arnold- April 20, 2008 Octavian Rasnita wrote:> I understand that the perl threads (at least under Windows) are actually > a kind of separate processes that don&39;t share the memory unlike the > Windows native threads, and that&39;s why they are not so slim as the > Windows threads and why they can&39;t share objects.> Yes and no.ithreads creates a new Perl interpretter in each new thread, and"clones" the context of the parent thread into thenew interpretter (in order to emulate a UNIX...http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1270.html Re: Perl threads under Windows by Octavian Rasnita- April 20, 2008 I understand that the perl threads (at least under Windows) are actually a kind of separate processes that don&39;t share the memory unlike the Windows native threads, and that&39;s why they are not so slim as the Windows threads and why they can&39;t share objects.Octavian----- Original Message ----- From: "Chris Fowler" <cfowleroutpostsentinel.com>To: "Dean Arnold" <darnoldpresicient.com>Cc: "Octavian Rasnita" <orasnitagmail.com>;...http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1269.html Re: Perl threads under Windows by Octavian Rasnita- April 20, 2008 Thank you Dean. I will search on perlmunks and try to see if I can adapt something for WxPerl.Unfortunately I can&39;t use Tk because this GUI is absolutely inaccessible for screen readers and I am blind, so I can&39;t test if it even works.Octavian----- Original Message ----- From: "Dean Arnold" <darnoldpresicient.com>To: "Octavian Rasnita" <orasnitagmail.com>Cc: <perl-ithreadsperl.org>Sent: Sunday, April 20, 2008 12:33 AMSubject: Re: Perl threads under...http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1268.html Re: Perl threads under Windows by Chris Fowler- April 19, 2008 Another suggestion is to share the DB connection info like host, user,database, passwd, etc. Then in the thread open, execute, close. Thishas worked for me.db handles can be used in a perl program that is threaded. you justcan&39;t share a db handle between threads. I don&39;t think they work acrossa fork either.On Sat, 2008-04-19 at 14:33 -0700, Dean Arnold wrote:> Octavian Rasnita wrote:> > > > Passing messages to a window might not seem very complicated, but if > >...http://www.nntp.perl.org/group/perl.ithreads/2008/04/msg1267.html |