Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Activestate perl and Threads

by chorg (Monk)
on Feb 10, 2001 at 22:37 UTC ( [id://57641]=perlquestion: print w/replies, xml ) Need Help??

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

I'm confused about something concerning threads in Perl 5.6.0 (ActiveState)

I want to try some _simple_ threading apps just to check it out. I read the docs, and I checked out threads in the search, but I wanted to know if I could use ithreads yet, and if so, how. I know about Threads.pm, but in the source distro, it says that that is a feature of perl 5.005. Has there been any changes in threading in perl 5.6.0, and are they usable in the least?

If I could use threads, I could hide from Java forever...
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

Replies are listed 'Best First'.
(tye)Re: Activestate perl and Threads
by tye (Sage) on Feb 11, 2001 at 09:14 UTC

    Perl 5.6 saw yet another threading model. So when you get ActivePerl, it has been built with this new threading model that simulates fork() by starting another thread with another Perl interpretter that is given a copy of the running interpretter's state.

    No, in my experience, it isn't more than the slightest bit useful. 90% of the simple things I tried failed in strange and scary ways.

    If you compile Perl yourself, then you can use the ithreads interface with Perl 5.6. I've heard of people actually doing productive work with it. I've also heard there are a lot of gotchas so you have to work around those.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://57641]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found