public void printMemory(){
  m_readLock.lock();
  for (  final MemoryChunk chunk : m_chunks) {
    chunk.print();
  }
  m_readLock.unlock();
}

public void printMemory ( ) { m_readLock . lock ( ) ; for ( final MemoryChunk chunk : m_chunks ) { chunk . print ( ) ; } m_readLock . unlock ( ) ; }
prints the content of the memory to stdout .
