my dog learned polymorphism*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes The way multi-threaded servers act Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "The way multi-threaded servers act" Watch "The way multi-threaded servers act" New topic

The way multi-threaded servers act

Mark O' Sullivan
Ranch Hand

Joined: Aug 17, 2009
Posts: 160
I'm new to multi-threaded servers, so just wondering, say, a server has 50 identical requests at the same, does he just treat them randomly, say service maybe request 49 before request 23, for example? A clear example could be 50 people trying to book a ticket on ticketmaster and just be chance 1 of the 50 gets booked. This right?
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

Yes. No. Actually the main point of multi-threaded servers is that they don't service the requests one at a time. They will be servicing several requests at the same time. So there's no "before".
Mark O' Sullivan
Ranch Hand

Joined: Aug 17, 2009
Posts: 160
Cheers, thanks, get concept.
I agree. Here's the link:
subject: The way multi-threaded servers act
Similar Threads
making Thread of methods
Multi-threading Question about network query
How can J2EE Programming be used to leverage Multicore processors?
best performance / practices for read and parse files ?