NYCPHP Meetup

NYPHP.org

[nycphp-talk] Does PHP have an equivalent to synchronized?

Gerald Timothy Quimpo gquimpo at sni-inc.com
Thu Feb 13 13:49:20 EST 2003


On Friday 14 February 2003 02:36 am, Phil Powell wrote:
> If anyone here is familiar with Java's "synchronized()" block, where a
> block of code will run as a separate thread and be forced to wait if
> another instance of that block is running?  If so, does PHP have its own
> version of that?

php isn't multithreaded (unless there's a lot of new syntax that i'm 
unaware of in the latest version :).  so you don't need synchronized.

tiger

-- 
Gerald Timothy Quimpo  tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"
    Absence diminishes small loves and increases great ones, as
     the wind blows out the candle and fans the bonfire.
	                     La Rochefoucauld



More information about the talk mailing list