As per clarification section(from MarkR) in link1
I felt that, Any server has single port on which server's listen() call is blocked(say tomcat) on which any client(say browser) would place connect() request, for instance, I assume, tomcat server does below(correct me)
//original/main single process does below
socket();bind();listen(on default port 80);
loop{
accept();
//app layer logic(i.e., Below activity is done on seperate thread from a threadpool in main process)
//reads in all of the HTTP request and converts it into an object called an HttpServletRequest. That object is then passed in to my servlet by Tomcat via a method call.
}
But As per link2,
I see that tomcat can listen on multiple ports, so how is the design of tomcat server for multiple/parallel listen() calls? Is tomcat having multiple processes where listen() is blocked on different ports?