in reply to Disappearing File
I don't think this has anything to do with locking.
In this case, without proper locking, the worst thing can happen is that you don't get the correct increment, but there is no chance that your counter will be decreased.
For example, your currect counter = 100, both process A and B try to increase the counter by 1. Somehow your locking failed, both A and B read 100, and then write 101 back. Your counter still increases, although it only increased by 1, instead of the right increment 2.
The fact your counter is going down, must be caused by some other defect(s).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Disappearing File
by Gorby (Monk) on Jan 13, 2004 at 07:17 UTC | |
by merlyn (Sage) on Jan 13, 2004 at 16:50 UTC |