This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "The way multi-threaded servers act" Watch "The way multi-threaded servers act" New topic
Author

The way multi-threaded servers act

Mark O' Sullivan
Ranch Hand

Joined: Aug 17, 2009
Posts: 160
Hi,
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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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.
 
GeeCON Prague 2014
 
subject: The way multi-threaded servers act