This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes mutithreaded question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "mutithreaded question" Watch "mutithreaded question" New topic
Author

mutithreaded question

mateen dar
Greenhorn

Joined: Dec 27, 2004
Posts: 26
does the server have to be muti threaded. if so could anyone explain the locking mechanism ion abit detail. thanks.
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
The server has to be able to handle multiple clients at the same time, so yes, multiple threads are involved.

s far as the locking... Wow, I wouldn't know where to start. This is one of the biggest parts of the assignment. Most people I talk to have implemented something akin to the approach in Max's book, where the Data class has a static reference to some type of collection that identifies locked records and their associated security cookie.

I would recommend checking out The Sun Certified Java Developer Exam with J2SE 1.4, often referred to as Max's book. It walks through a sample project that deals with locking and multi threading.


“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mutithreaded question