private void createMultiplePartitionedRegions(){
  if (PRCreateDone)   return;
  int numthread=0;
  while (numthread < TOTAL_THREADS) {
    PartionedRegionCreateThread pregionThread=new PartionedRegionCreateThread();
    pregionThread.start();
    numthread++;
  }
  while (!createComplete) {
synchronized (CREATE_COMPLETE_LOCK) {
      if (!createComplete) {
        try {
          CREATE_COMPLETE_LOCK.wait();
        }
 catch (        Exception ex) {
        }
      }
    }
  }
  PRCreateDone=true;
}

private void createMultiplePartitionedRegions ( ) { if ( PRCreateDone ) return ; int numthread = 0 ; while ( numthread < TOTAL_THREADS ) { PartionedRegionCreateThread pregionThread = new PartionedRegionCreateThread ( ) ; pregionThread . start ( ) ; numthread ++ ; } while ( ! createComplete ) { synchronized ( CREATE_COMPLETE_LOCK ) { if ( ! createComplete ) { try { CREATE_COMPLETE_LOCK . wait ( ) ; } catch ( Exception ex ) { } } } } PRCreateDone = true ; }
creates multiple partitioned region from different threads .
