Re: perl's threads

2011-02-12 Thread Shlomi Fish
Hi Rob, well, if we are already discussing threads in general, and not in Perl in particular, I might as well contribute to the discussion. On Wednesday 09 Feb 2011 15:03:04 Rob Coops wrote: > Just adding a little to this discussion then. :-) > > Threads regardless of the language are meant to

Re: perl's threads

2011-02-11 Thread Rob Coops
I have to agree I missed things a bit there :-( forks are simply a better way of dealing with threads then the default perl ithreads, the benefits forks offer goes far beyond the minimal drawbacks. By now the notes about modules that still insist on using threads rather then forks will for most us

Re: perl's threads

2011-02-11 Thread Dr.Ruud
On 2011-02-09 14:03, Rob Coops wrote: > But any developer that tells you that threads are not worth the > trouble they cause or anything along those lines is clearly an > experienced programmer who unfortunately has not realized yet > that the computer world has changed incredibly over the past >

Re: perl's threads

2011-02-09 Thread Rob Coops
Just adding a little to this discussion then. :-) Threads regardless of the language are meant to do multiple things in parallel. For instance I'm at the moment working on a tool that extracts vast amounts of data from a web service as the calls to that service are pretty much independent and the

Re: perl's threads

2011-02-09 Thread Shlomi Fish
On Tuesday 08 Feb 2011 10:05:47 Dr.Ruud wrote: > On 2011-02-07 11:30, Shlomi Fish wrote: > > Threads work pretty well in C, though they are extremely tricky to get > > right for non-trivial programs > > That they work "pretty well" is probably about user experience of some > heavily interactive sy

Re: perl's threads

2011-02-09 Thread Dr.Ruud
On 2011-02-07 07:44, Octavian Rasnita wrote: From: "Dr.Ruud" On 2011-02-06 12:12, terry peng wrote: What's the suggested module for perl's threads? I have been using Perl 5.12 under linux. Stay away from threads. Design and develop in a way that no internal resources

Re: perl's threads

2011-02-09 Thread Dr.Ruud
On 2011-02-07 11:30, Shlomi Fish wrote: Threads work pretty well in C, though they are extremely tricky to get right for non-trivial programs That they work "pretty well" is probably about user experience of some heavily interactive system. But only if the user accepts crashes and deadlocks

Re[2]: perl's threads

2011-02-07 Thread terry peng
oid: > > [quote] > >Before you start implementing code using Perl's threads, > please remember that Perl's threads are not like other threads. Please see > http://perldoc.perl.org/perlthrtut.html to learn more; specifically the "What > kind of threads are perl thre

Re: perl's threads

2011-02-07 Thread Shlomi Fish
Hi Terry, On Monday 07 Feb 2011 02:32:49 terry peng wrote: > Sun, 06 Feb 2011 16:21:58 +0100 письмо от "Dr.Ruud" : > > On 2011-02-06 12:12, terry peng wrote: > > > What's the suggested module for perl's threads? > > > I have been using Perl 5.

Re: perl's threads

2011-02-06 Thread Octavian Rasnita
From: "Dr.Ruud" On 2011-02-06 12:12, terry peng wrote: What's the suggested module for perl's threads? I have been using Perl 5.12 under linux. Stay away from threads. Design and develop in a way that no internal resources (but read-only data) are shared. In a pro

Re: perl's threads

2011-02-06 Thread Shawn H Corey
On 11-02-06 07:32 PM, terry peng wrote: why no threads? I have been using threads in other language (like Java) for long time, I was thinking it's good. It depends on what your OS is. *NIX is designed to dispatch and recover processes. Windows does not fork well since every Windows processe

Re[2]: perl's threads

2011-02-06 Thread terry peng
Sun, 06 Feb 2011 16:21:58 +0100 письмо от "Dr.Ruud" : > On 2011-02-06 12:12, terry peng wrote: > > > What's the suggested module for perl's threads? > > I have been using Perl 5.12 under linux. > > Stay away from threads. Design and develop in a

Re: perl's threads

2011-02-06 Thread Dr.Ruud
On 2011-02-06 12:12, terry peng wrote: What's the suggested module for perl's threads? I have been using Perl 5.12 under linux. Stay away from threads. Design and develop in a way that no internal resources (but read-only data) are shared. -- Ruud -- To unsubscribe, e-mail:

Re[2]: perl's threads

2011-02-06 Thread terry peng
Sun, 06 Feb 2011 08:54:50 -0500 письмо от Shawn H Corey : > On 11-02-06 07:10 AM, Octavian Rasnita wrote: > > From: "terry peng" > >> What's the suggested module for perl's threads? > >> I have been using Perl 5.12 under linux. > >> &

Re: perl's threads

2011-02-06 Thread Shawn H Corey
On 11-02-06 07:10 AM, Octavian Rasnita wrote: From: "terry peng" What's the suggested module for perl's threads? I have been using Perl 5.12 under linux. Thanks. use threads; use threads::shared; use Thread::Queue; This module does the work of threads::shared.

Re: perl's threads

2011-02-06 Thread Octavian Rasnita
From: "terry peng" > What's the suggested module for perl's threads? > I have been using Perl 5.12 under linux. > > Thanks. use threads; use threads::shared; Octavian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-ma

perl's threads

2011-02-06 Thread terry peng
What's the suggested module for perl's threads? I have been using Perl 5.12 under linux. Thanks.