Which is more robust and scalable method?

Posted by Dhruv Arya on Stack Overflow See other posts from Stack Overflow or by Dhruv Arya
Published on 2012-04-08T17:06:59Z Indexed on 2012/04/08 17:30 UTC
Read the original article Hit count: 233

I am implementing a distributed chat system, in this system we have the following options :

  1. Make the client and server running at each node run as separate threads. The server acting as the receiver will be running as the daemon thread and the client taking the user input as a normal thread.

  2. Fork two processes one for the client and one for the server.

I am not able to reason out with which one to proceed. Any insight would be great !

© Stack Overflow or respective owner

Related posts about multithreading

Related posts about chat