in reply to Re^9: threads with shared variables across multiple instances of a module
in thread threads with shared variables across multiple instances of a module
Hi, thanks a lot, cause code is working in Linux(debian) with Perl 5.10.0. I had mistake and it was here:
open $client, "+<$fileno" || die "$!\n";must be "+<&$fileno", & - forget it =(
BUT, don't work in windows XP SP3 with Strawberry Perl 5.10.1.1 (the latest version). Looks like message should send/recive in turn, otherwise blok input or output until send/recive. Perhaps cause i don't lock anything in my programms, althought it works in Linux. I'll try to change it soon. All i can say that in WinXP i didn't see in taskmanager more then one thread at process cmd-server or cmd-client.
|
|---|