After using the Shared resource, the semaphore count can be set to 1 by using semop .
在使用完共享资源之后,可以使用semop将信号量计数设置为1。
Of course, the two processes must synchronize themselves when accessing the Shared resource.
当然,两个进程在访问共享资源的时候必须同步。
OpenFileMapping indicates the Shared resource must already exist; this call is merely requesting access to it.
OpenFileMapping需要共享资源必须已经存在;这个调用只是请求对它的访问。
应用推荐