Home:ALL Converter>Is there a difference between hosting a server and client on different threads rather than on different processes?

Is there a difference between hosting a server and client on different threads rather than on different processes?

Ask Time:2018-11-14T06:10:24         Author:thelostmachine

Json Formatter

We have our own networking protocol and my initial integration tests were written to host a Server on one thread and a Client on another thread, then test the communication between those two. However, I was recently told I should use processes to host the Server and Client instead. The reasoning was because of possible synchronization issues and how Java or the OS (don't know which one) handles the scheduling for multithreading.

Is there actually a difference between running a Server and Client on two threads compared to two processes?

Author:thelostmachine,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53290259/is-there-a-difference-between-hosting-a-server-and-client-on-different-threads-r
yy