in reply to parallelism in threaded subroutines?

but from the output, it does not seem like the two subroutines are truly being executed in parallel which I require. It appears to me that run() is being ran first and for a good amount of time before listen() is executed. How can I make this work?

The output is irrelevant :)

They are being executed in parallel

The output might change if you do  STDOUT->blocking(0);

Replies are listed 'Best First'.
Re^2: parallelism in threaded subroutines?
by Anonymous Monk on Jul 24, 2015 at 23:02 UTC
    or  STDOUT->autoflush(1); :)
      gotcha, thanks!