SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast wordgeist's Avatar
    Join Date
    Oct 2009
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    creating a multi thread script in perl

    Any of you knows how to create a multi thread script in perl?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    http://perldoc.perl.org/perlthrtut.html

    fork()'ing is also an option

  3. #3
    SitePoint Zealot Bompa's Avatar
    Join Date
    Feb 2008
    Posts
    179
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    http://perldoc.perl.org/perlthrtut.html

    fork()'ing is also an option
    Yeah, some people use thread and fork interchangeably.

    Here is what got me started with fork

    http://hell.jedicoder.net/?p=82

  4. #4
    SitePoint Enthusiast
    Join Date
    Nov 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Bompa View Post
    Yeah, some people use thread and fork interchangeably.

    Here is what got me started with fork

    http://hell.jedicoder.net/?p=82
    The problem with fork is that it creates a whole new instance of your script which, depending on your script, can be quite memory intensive. Obviously it is easier to implement though.

  5. #5
    SitePoint Member
    Join Date
    Jan 2010
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dev.perl.org/perl6/rfc/1.html
    Last edited by spikeZ; Jan 19, 2010 at 18:47.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •