To use the multiread exclusivewrite synchronizer

  1. Create a global instance of TMultiReadExcllusiveWriteSynchronizer that is associated with the global memory you want to protect.
  2. Before any thread reads from the memory, it must call BeginRead.
  3. At the completion of reading memory, the thread must call EndRead.
  4. Before any thread writes to the memory, it must call BeginWrite.
  5. At the completion of writing to the memory, the thread must call EndWrite.

Warning: The multi-read exclusive-write synchronizer only works if every thread uses it to access the associated global memory. Otherwise, problems of simultaneous access can occur.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment