Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread safety  RSS feed

 
Cecilia Anderson
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
In the Sun requirements it is stated that both the server and the suncertify.db classes must be threadsafe.
The methods in my Data class are synchronized.
The only thing the server does is "Naming.rebind(..), createRegistry(..)". How can I make that threadsafe??
//Cecilia
 
Sai Prasad
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Cecilia:

The only thing the server does is "Naming.rebind(..), createRegistry(..)". How can I make that threadsafe??

Why do you want to make them thread safe?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!