I am using a mute x for the important section. I have a design barrier, 1) If 2 is read in 2 different threads, then important section should be available for both. 2) If any writing is being done then reading should be blocked on other threads 3) If someone is educated then write on other thread should be blocked.
I do not know how to create it Createmutex, openmutex, waitforsingleobject and releasemutex apis.
What you are looking for is one. For example, there are some implementations on the Internet.
Comments
Post a Comment