Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Running 2 different subs simultaneously

by karlgoethebier (Monsignor)
on Jan 02, 2018 at 20:34 UTC ( #1206559=note: print w/replies, xml ) Need Help??


in reply to Running 2 different subs simultaneously
in thread Parallel trigger of different subs

"...not one after the other, should be parallel..."

Try to add say MCE::Hobo->pid(); to the subs and say $$; say for MCE::Hobo->list_running(); say MCE::Hobo->pending(); to main in the example i provided and watch the flow. Also increase the constant AMOUNT and watch what happens in what ever "task manager" you use. You may also say # use threads; and see what happens.

Best regards, Karl

«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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2018-11-13 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (156 votes). Check out past polls.

    Notices?