Hi Everyone,
I'm currently working on a server software and it's still on a design stage.
In short, here's the server's model: server process starts, then it forks a child processes to listen on each unique ip
ort pair configured. Forked processes use create threads to respond to requests. Parent and child processes and threads, all have to share the same in-merory database. The database should be updated sometimes on the fly. Only the parent process can initiate an update. I've got to pause every activity going on in the server while updating. Should it be done with semaphores for each thread and forked child process? WHat is the correct way of doing this?
I'm just starting with Linux devevlopment, so, sorry for questions like there. Try to make better soon.
I would appreciate any help.
Thanks a lot!