• Post Reply Bookmark Topic Watch Topic
  • New Topic

thread-safe server question!

emil dragan
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My server class extends UnicastRemoteObject and implements an interface that contains all the public methods found in Data class. I've added the word synchronized to all these methods in the server class and I've implemented lock/unlock using a HashMap. Is this all I need to do to make sure that my server is thread-safe? I can't think of anything else, therefore any suggestions/questions are welcome.
[ January 09, 2002: Message edited by: emil dragan ]
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!