Re: how to do increments in parallel

2001-11-13 Thread Jeremy Zawodny
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

Re: how to do increments in parallel

2001-11-13 Thread Tore Van Grembergen
= 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

Re: how to do increments in parallel

2001-11-12 Thread Jeremy Zawodny
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

how to do increments in parallel

2001-11-12 Thread Bennett Haselton
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