I'm writing a 'stateless' game that runs of HTTP, and I need
to do the usual server fork()ing thing, BUT...
The game has megs of static structures.
It has LOTS of linked lists of little structures.
The children will spend >70% of their time on socket I/O.
fork() duplicates megs of data that it does not need to.
It seems silly to use shget for each allocation of an
object in the linked list -- this seems like it would
get messy, and use lots of lists.
Q: How many calls to shget() can I do? (the linked lists
will be destroying and recreating things alot). And
is there a limit on how much?
This looks like a good case for a thread -- it would save
alot of IPC semaphores and shared memory problems...
Any thoughts? Thanks in advance.