Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: script hanging at thread start

by Anonymous Monk
on Nov 25, 2020 at 15:32 UTC ( #11124200=note: print w/replies, xml ) Need Help??


in reply to script hanging at thread start

From perldoc threads

WARNING

The "interpreter-based threads" provided by Perl are not the fast, lightweight system for multitasking that one might expect or hope for. Threads are implemented in a way that makes them easy to misuse. Few people know how to use them correctly or will be able to provide help.

The use of interpreter-based threads in perl is officially discouraged.

Replies are listed 'Best First'.
Re^2: script hanging at thread start
by marto (Cardinal) on Nov 25, 2020 at 16:39 UTC

      Ouch! "It" is still there. Big surprise.

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Re^2: script hanging at thread start
by Bod (Hermit) on Nov 26, 2020 at 23:06 UTC

    I know very little about threads but it strikes me that this problem is better suited to fork
    (assuming this is on a *IX OS)

    edit


    I've just reread the original question and it's Strawberry Perl which I believe implements fork with threads

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11124200]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2021-02-27 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?