Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: script hanging at thread start

by Anonymous Monk
on Nov 25, 2020 at 15:32 UTC ( [id://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 (Parson) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11124200]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found