0

What's the difference between the SEM and SHMOP functions in PHP? Are SEM functions exclusive for System V and SHMOP for UNIX?

2 Answers 2

1

SHMOP functions are for UNIX systems only.

Sign up to request clarification or add additional context in comments.

Comments

1

SHMOP functions can be used in *NIX and Windows environments. Semaphore is not available in Windows at all however, which also includes ftok().

If you check out the PHP documentation user comments for SHMOP, there are workarounds for getting a key to use with SHMOP in Windows without ftok().

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.