This article mainly introduces the PHP process communication basic knowledge of the signal volume and shared memory communication related data, there is a need for small partners can be viewed under the process of who first do not determine, which depends on the kernel's process scheduling algorithm, which is more complex. As a result, it is possible for multiple processes to access shared memory at the same time, resulting in unexpected errors. The name of the semaphore is puzzling, but it is easy to understand the English original. semaphore | [ˈseməfɔ: (R)] Vt. Send a signal and semaphore; Similar to the role of commanders. Let's look at the use of the next pseudo-code semaphore. 1. Create semaphore unique identifier $ftok = Ftok (__file__, ' a '), 2, create semaphore resource id$sem_resouce_id = Sem_get ($ftok), 3, receive Semaphore sem_acqure ($sem _resource _ID); 4, release the semaphore sem_release ($sem _resource_id), 5, Destroy the signal volume SEM_
1. PHP Process Communication base signal volume and shared memory communication
Introduction: This article mainly introduces the PHP process communication basic knowledge of the signal volume and shared memory communication related information, the need for small partners can view the next
2. PHP Process Communication base signal volume and shared memory communication _php Tips
Introduction: This article mainly introduces the PHP process communication basic knowledge of the signal volume and shared memory communication related information, the need for small partners can view the next
"Related question and answer recommendation":