There is always another way to skin a cat.
Rather than have every thread share the 2GB of data, I would create the server threads before loading it.
Only the the main thread would have a (non-shared) copy of the 2GB, but would share the requests and replies with the server threads.
The advantages. No signals, reapers, select or constantly renewing processes.
In reply to Re^5: Handling multiple clients
by BrowserUk
in thread Handling multiple clients
by jalewis2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |