Home > Software engineering >  Synchronization problem of memory sharing
Synchronization problem of memory sharing

Time:01-15

2 process, A program is responsible for the open time reaches A point in time to send A notification procedure test thread B open, what I use be A way of sharing memory, write memory and send event notifications and B start working after receiving the notice, under the condition of single thread if do not have what problem, but if A program is made up of 12 threads to order issued A circular, exactly which thread B program change if the difference between sending, whether to build 12 event object? Then each thread corresponding to the handle to an event, 12 threads are waiting for their own event notification and then start to work? There is A notice after B open and notice B closed, this how to write things,,,,,,,, data structure, how to write

CodePudding user response:

When you write A program to the Shared memory write the thread number not line?
  • Related