multithreading - Create Semaphore in PHP linux (Centos) -


i'm using centos 6.5 php 5.3.3.

i have 2 processes want prevent working together. thought creating semaphore after browsing online found this.

this object doesn't work on server. when call function sem_get(), error: "call undefined function sem_get()"

read , turns out need change compilations on server work.

i made these changes , server collapsed, it caused huge mess , after restoring server i'm not going again.

is there way above error fixed standard include or other solution?

if not, can me find way implement semaphore in way or other solution prevent 2 process running @ same time?

i need flag set true , other process check flag , out if true.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -