On Mon, Nov 12, 2001 at 11:29:48PM -0800, Jeremy Zawodny wrote:
> On Mon, Nov 12, 2001 at 10:52:39PM -0800, Bennett Haselton wrote:
> > Say I have two running programs and both of them periodically want to
> > increment a value in a database. How can I do this so that the increments
> > will be
= 20 then errormessage
- Original Message -
From: "Bennett Haselton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 7:52 AM
Subject: how to do increments in parallel
> Say I have two running programs and both of them periodically want to
On Mon, Nov 12, 2001 at 10:52:39PM -0800, Bennett Haselton wrote:
> Say I have two running programs and both of them periodically want to
> increment a value in a database. How can I do this so that the increments
> will be performed correctly even if the two programs try to do them at the
> s
Say I have two running programs and both of them periodically want to
increment a value in a database. How can I do this so that the increments
will be performed correctly even if the two programs try to do them at the
same time?
If I have code like this:
$x = read_value_from_databas