I have two applications in which APP_A writes some data to shared memory and APP_B reads the data from the same. I have two auto reset events(global events) Event_A and Event_B to synchronize shared memory access.It works as follows
1. APP_A waits for Event_A for 2 seconds timeout.(Initially state set)
2. APP_B waits for Event_B for INFINITE timeout.
3. When applications start, APP_A wait is returned since it is initially set.
4. Once returned, it writes data to shared memory and sets Event_B.
5. Now APP_B wait is returned. It reads data from shared memory and sets Event_A.
In issue scenario, there so many applications (say100) instead of APP_A and each requests to write to shared memory 10000 times. Thus many applications are waiting for Event_A.
The issue is each time Event_A is set, one of APP_X wait returns and some applications got timeout?
Thanks, Renjith V R