in reply to Re^3: Can I/O operations on the same IO::Socket be executed in different threads?
in thread Can I/O operations on the same IO::Socket be executed in different threads?

Show us!


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^4: Can I/O operations on the same IO::Socket be executed in different threads?

Replies are listed 'Best First'.
Re^5: Can I/O operations on the same IO::Socket be executed in different threads?
by Anonymous Monk on May 12, 2015 at 13:32 UTC

    What, you request an example of a threaded program producing output to a socket? Obliged.

    bash$ perl -Mthreads -e '$_->join for map async{ warn $_ for $_ .. $_ ++ 1e3 }, map $_ * 1e3, 1 .. 20' >& /dev/tcp/0/1234

      >& /dev/tcp/0/1234

      that is not portable it won't work on windows -- portability is the point