At 18:47 -0400 on 06/16/2014, John Gilmore wrote about Re: RENT, REFR and key=0 storage - A correction:

There is botched arithmetic in my shoes-inventory example.  Luckily,
it does not affect the validity of my argument.

I should have written

. . . B updates the record to reflect a ccount of 15 [not 20] pairs . . .

Tom Marchant noted this blunder, and I am grateful to him for making
me aware of it.

John Gilmore, Ashland, MA 01721 - USA

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

As I noted in my reply, you also have a race condition possibility where both programs when they check see enough inventory to handle THEIR reduction but they want to reduce the inventory by more than there is in stock. Thus replace the 5 and 10 with 10 and 15 and you will not only end up with a wrong inventory count but also attempted to reduce the inventory to a negative amount thinking that you could fulfill both requests.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to