LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2004, 07:52 AM   #1
eph
LQ Newbie
 
Registered: Jan 2004
Location: Muntinlupa, Philippines
Distribution: Mandrake
Posts: 8

Rep: Reputation: 0
Question perl question


does anybody know a site where i can learn about threading in perl?

can perl do this? thanks
 
Old 03-17-2004, 10:02 AM   #2
rootyard
Member
 
Registered: Aug 2003
Posts: 167

Rep: Reputation: 30
In 5.8 version YES! Real Threading, not simulated. Read this article:
http://www.perl.com/pub/a/2002/06/11/threads.html

Surprised you didn't find this on Google
 
Old 03-17-2004, 11:27 AM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Wow, thanks for bringing this up!! I had such difficulties writing an MSN client in perl because of the crappy threading...this makes life so much easier!
 
Old 04-04-2004, 07:19 PM   #4
meonkeys
Member
 
Registered: Apr 2004
Location: Minneapolis
Distribution: Ubuntu
Posts: 45

Rep: Reputation: 15
Threading in Perl is pretty simple and powerful. Check out this perldoc for 'threads' as well as the new tutorial on threads in Perl. The speed difference seen when forking vs. creating a new thread in Perl doesn't seem to be that significant, so don't switch to threads in Perl for performance reasons.
 
Old 04-04-2004, 10:51 PM   #5
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
Quote:
The speed difference seen when forking vs. creating a new thread in Perl doesn't seem to be that significant
You're a good man. That's because the performance difference between forking vs. creating a new thread on *linux* is very small. I hate looking at obfuscated code because somebody thought they were being performance concious
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl Question rjcrews Programming 15 12-12-2005 10:34 AM
a perl question thanhVic Programming 1 03-13-2005 03:45 AM
a perl question thanhVic Linux - Newbie 2 03-12-2005 06:04 PM
Hiding code in PERL, perl gui question randomx Programming 1 06-26-2004 04:22 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 09:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration