Re: Shared memory, mutex functionality and spawning threads. Is it possible using PHP?

From: Date: Tue, 02 Sep 2008 05:49:29 +0000
Subject: Re: Shared memory, mutex functionality and spawning threads. Is it possible using PHP?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-279246@lists.php.net to get a copy of this message
Kent Larsson wrote: > In absence of shared memory and threads. What I really must have is > some kind of mutex functionality. I will be manipulating files on disk > and I don't want two instances to be able to touch the disk at the > same time. Touch the disk or touch the file? I assume you meant the latter, i.e. you don't want two instances to operate on the same file concurrently. > Is there something I could use for mutual exclusion? If > there aren't any dedicated methods, are there 100% reliable > workarounds? Look up file locking. In fact, this was the topic of a very recent thread. /Per Jessen, Zürich

« previous php.general (#279246) next »