Can someone please explain me why would a UDP Server not need to use thread and why would a TCP server need to use threads during the client/server communication?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you’ve misunderstood. There is no need for a UDP server to use more than one thread, as it only has to deal with one socket. A TCP server has to deal with a socket per connection, and in blocking mode it therefore needs a thread per connection, in addition to the thread dealing with the listening socket.