in reply to Re^4: 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?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Can I/O operations on the same IO::Socket be executed in different threads?
by Anonymous Monk on May 13, 2015 at 02:18 UTC |