According to Re: IO::Select on Windows, the module IO::Select works on Win32. Therefore you can use this to implement a socket server without forking. It may require some substantial changes to your code, but hopefully you'll be happier in the end. See the docs for a basic example of how to read from multiple sockets at once using this module. | [reply] |
I don't know of any quick fix (I suppose installing a new
os instead of win32 isn't possible).
I can only agree with the others: write a single-threaded
program with select (or poll or epoll).
(If you insist on a multi-threaded program, you'll have
to use a program with a more lightweight thread modell,
as you'll need many threads.
Try ruby, bigloo scheme, python, or (and I hate to say this)
java.)
| [reply] |
64 process limit? Fork on win32 gives me problems way before I hit 64... At any rate, this node may be what you need. I never implemented it myself, since I found a different solution to my problem, but it could be the answer for you.
--
Linux, sci-fi, and Nat Torkington, all at Penguicon 3.0
perl -e 'print(map(chr,(0x4a,0x41,0x50,0x48,0xa)))'
| [reply] [d/l] |