How to protect critical section in PHP?
Posted
by Morgan Cheng
on Stack Overflow
See other posts from Stack Overflow
or by Morgan Cheng
Published on 2010-04-05T00:55:34Z
Indexed on
2010/04/05
1:03 UTC
Read the original article
Hit count: 520
I did some search about this topic but found nothing valuable.
If I don't use PHP default session handler, there is no session lock at request level. So, I have to protect critical section by myself.
In Java, we have synchronized. In C#, we have lock.
In PHP, how to do that?
© Stack Overflow or respective owner