Re: Perl Threads
Good and threads are hardly find together. Perl has a share nothing model. I would really consider to 'use forks', the syntax is similar and usually gets the work done. http://search.cpan.org/dist/forks/lib/forks.pm Best Regards Marcos Rebelo On Sun, Oct 10, 2010 at 5:08 PM, chillidba wrote: > Hello Perl Masters, > > I couldn't find good stuffs on Perl Threads, > Can some body please point me to Perl Thread tutorials.(some pdf with > examples) > > Or if someone already have some small projects/examples please send me > > Thanks in Advance!! > > Regards, > Perl Beginner > Marcos Rebelo http://oleber.freehostia.com Milan Perl Mongers leader http://milan.pm.org Webmaster of http://perl5notebook.oleber.com -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Perl Threads
On 10-10-10 11:08 AM, chillidba wrote: Hello Perl Masters, I couldn't find good stuffs on Perl Threads, Can some body please point me to Perl Thread tutorials.(some pdf with examples) Or if someone already have some small projects/examples please send me Thanks in Advance!! Regards, Perl Beginner See: perldoc thrtut perldoc threads perldoc Thread perldoc Thread::Queue -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. The secret to great software: Fail early & often. Eliminate software piracy: use only FLOSS. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Perl Threads
On Sunday 10 Oct 2010 20:38:32 chillidba wrote: > Can some body please point me to Perl Thread tutorials.(some pdf with > examples) Hi, perldoc perlthrtut http://perldoc.perl.org/perlthrtut.html Regards, Alan Haggai Alavi. -- The difference makes the difference. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Perl Threads
On Sunday 10 Oct 2010 20:38:32 chillidba wrote: > Can some body please point me to Perl Thread tutorials.(some pdf with > examples) Hi, perldoc perlthrtut http://perldoc.perl.org/perlthrtut.html Regards, Alan Haggai Alavi. -- The difference makes the difference. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Perl Threads
The usual elevator example: http://www.perl.com/pub/2002/09/04/threads.html I'm not entirely sure if the article is dated (I used it a couple of months back as a personal introduction to threads in general, for whatever that counts), but if anything, the explanation on building a threaded Perl, and the part about shared variables, are both still useful. Brian.
Re: Perl Threads
Thanks a lot All of your On Wed, Oct 13, 2010 at 6:21 AM, Brian Fraser wrote: > The usual elevator example: > http://www.perl.com/pub/2002/09/04/threads.html > > I'm not entirely sure if the article is dated (I used it a couple of months > back as a personal introduction to threads in general, for whatever that > counts), but if anything, the explanation on building a threaded Perl, and > the part about shared variables, are both still useful. > > > Brian. >
Re: Perl threads
Hi Sharan, Have you considered using asynchronous events instead? You might find it's easier to work out. (See EV, Coro, AnyEvent, etc. in the CPAN) Otherwise, just.. read the manual on threads? - Anneli 2011/11/6 Sharan Basappa > Hello, > > We are in the process of writing a perl program that can send network > traffic on the native pc network port. > Essentially, the perl program emulates as if different traffic type sources > are sending the traffic data. > For this, our plan is to have a independent thread to emulate each traffic > type (e.g. slow/small traffic, small/fast traffic, large/infrequent traffic > etc.) > So, a mail program would spawn multiple threads and these threads would > send events back to main thread. > The main thread would then send traffic depending on the type of event it > receives. > > Can someone let me know what perl constructs to use for implementing this > program. This is our first time with perl threads. > > Thanks ... >
Re: perl threads/free wrong pool
On 1/15/07, Alexandru Maximciuc <[EMAIL PROTECTED]> wrote: could somebody please point me to a fix for the problem: "Free to wrong pool 222db0 not 27b9158 at D:/Perl/lib/XSLoader.pm line -1" Probably, file a bug report (via perlbug) that that message isn't found in the perldiag manpage; then apply the resulting fix. You could try reinstalling Perl in the meantime, in case that fixes anything; but it looks like an error you're not supposed to get under ordinary conditions. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/