So here is the question, should I fork or use threads in my server daemon? I'm writing a simple daemon that will listen for connection attempts and then handle them as needed. Now should I fork for every new connection or should I just create a new thread?
I am aware that forking a process requires more memory and has a slightly larger over head compared to creating a new thread but what is the accepted method for this?
I am aware that forking a process requires more memory and has a slightly larger over head compared to creating a new thread but what is the accepted method for this?