[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] fork()



IIRC fork() is the PID copier thing, right?
Well, on my linux-box i can create a script with a fork() function inside,
so that it will be multi-threaded, e.g. :

if ($pid = fork) {                      # We are parent
        $irc->start;
} elsif (defined $pid) {                # We are child
           while($fp = <>){
                $conn->privmsg("#perl", $fp);
                }
 }
 else {
  die "Can't fork!\n";                  # Houston, ... ;-)
}

Isn't this a possibility (at least a slighlty modified piece of code) to
eventually make MacPerl script multi-threaded?

And, for the makers of MacPerl i've got another question:

Thanks you for making perl available for the mac, but what i don't really
get is why MacPerl isn't multi-threaded, as the mac *is*. Will it ever be
possible? If not, can i use the unix perl version on Mac OS X and how?

thanks,

Martijn Houtman
VT Internet Produkties
Netherlands




# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org