• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

mutithreaded question

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
does the server have to be muti threaded. if so could anyone explain the locking mechanism ion abit detail. thanks.
 
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic