Does PHP have the equivilant to Java 'synchronized' , or is this not required?
<p>I am familiar with Java and at the moment I am teaching myself PHP. To prevent race conditions and deadlocks, Java uses the keyword 'synchronized'.</p>

<p>From Oracle docs:</p>

<pre><code>public synchronized void increment() {
        c++;
}
</code></pre>

<p>I am using prepared statements within a separate class to access my database. I wish to avoid race conditions, deadlocks etc, but I cannot see how PHP handles this.</p>

<p>Does PHP have the equivalent to Java, and is it operating system specific? I am using Windows.  What would best practices be?</p>
