Why? look at the following 2 pieces of code for implementing a simple web server based on socket, can you point out the problems(I put them in the comments)? /** Single thread. bad response time and throughout(CPU idle). Think about how it will block…