synchronized ( someObject )
   {
   /* crucial code */
   }