public IpcSharedMemorySpace(String tokFileName,int writerPid,int readerPid,int size,boolean reader,IgniteLogger parent) throws IgniteCheckedException {
  assert size > 0 : "Size cannot be less than 1 byte";
  log=parent.getLogger(IpcSharedMemorySpace.class);
  opSize=size;
  shmemPtr=IpcSharedMemoryUtils.allocateSystemResources(tokFileName,size,DEBUG && log.isDebugEnabled());
  shmemId=IpcSharedMemoryUtils.sharedMemoryId(shmemPtr);
  semId=IpcSharedMemoryUtils.semaphoreId(shmemPtr);
  isReader=reader;
  this.tokFileName=tokFileName;
  this.readerPid=readerPid;
  this.writerPid=writerPid;
  if (DEBUG && log.isDebugEnabled())   log.debug("Shared memory space has been created: " + this);
}

public IpcSharedMemorySpace ( String tokFileName , int writerPid , int readerPid , int size , boolean reader , IgniteLogger parent ) throws IgniteCheckedException { assert size > 0 : "Size cannot be less than 1 byte" ; log = parent . getLogger ( IpcSharedMemorySpace . class ) ; opSize = size ; shmemPtr = IpcSharedMemoryUtils . allocateSystemResources ( tokFileName , size , DEBUG && log . isDebugEnabled ( ) ) ; shmemId = IpcSharedMemoryUtils . sharedMemoryId ( shmemPtr ) ; semId = IpcSharedMemoryUtils . semaphoreId ( shmemPtr ) ; isReader = reader ; this . tokFileName = tokFileName ; this . readerPid = readerPid ; this . writerPid = writerPid ; if ( DEBUG && log . isDebugEnabled ( ) ) log . debug ( "Shared memory space has been created: " + this ) ; }
this will allocate system resources for the space .
