mkirank has asked for the wisdom of the Perl Monks concerning the following question:

I would like to know the difference between process and threads , i was told that under *nix systems when we do a fork a new process would be created with its own text and data segment(stack...)...what about threads ?..is this dependant on the OS ?.. and how to create threads in perl ???

Replies are listed 'Best First'.
Re: Threads and Process
by jreades (Friar) on Dec 13, 2002 at 11:26 UTC

    This has been covered before in several places on this site so it is a good idea to do a power search and save yourself quite a bit of time.

    This node should help: Threads vs Forking (Java vs Perl)

Re: Threads and Process
by bronto (Priest) on Dec 13, 2002 at 11:25 UTC

    Run perldoc perlthrtut and read on :-)

    Ciao!
    --bronto

    # Another Perl edition of a song:
    # The End, by The Beatles
    END {
      $you->take($love) eq $you->make($love) ;
    }

Re: Threads and Process
by BazB (Priest) on Dec 13, 2002 at 15:56 UTC