I  using synchronized block  and need help in using it ?
       
      I have a SingleTon class which has a global valriable Map.
      I will  updating this Map  at runtime.
       
      Example
              synchronized (fActionHandlers) {
      fActionHandlers.put(
          vAction.getClassName(),  
          vConfigAction);
  }
      I want this  update to be synchronized . The above code is this right  ?
          My  assumption about this is JVM will allow only one thread at a time 
to execute  the code in the synchronized block  is  this right ?
  Thanks & Regards
         
    
 
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

Reply via email to