cnd has asked for the wisdom of the Perl Monks concerning the following question:
I notice there's no locking or atomic operations possible, right?
e.g. even a $database_key++ operation is going to give the wrong answer if 2 processes do that at the same time. Yes - I tested this. we get 2 FETCH, both before 2 STORE, clobbering data (no matter what mechanism is under-the-hood).Which makes me wonder - how do folks deal with using tie on multiprocess/multithread projects?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: atomic tie?
by ikegami (Patriarch) on Aug 11, 2024 at 14:59 UTC | |
|
Re: atomic tie?
by talexb (Chancellor) on Aug 12, 2024 at 15:55 UTC | |
by cavac (Prior) on Aug 12, 2024 at 16:31 UTC | |
by LanX (Saint) on Aug 12, 2024 at 20:49 UTC | |
|
Re: atomic tie?
by LanX (Saint) on Aug 11, 2024 at 17:04 UTC | |
|
Re: atomic tie?
by Anonymous Monk on Aug 11, 2024 at 14:21 UTC | |
|
Re: atomic tie?
by perlfan (Parson) on Aug 24, 2024 at 01:09 UTC | |
by ikegami (Patriarch) on Aug 24, 2024 at 03:09 UTC | |
by perlfan (Parson) on Aug 24, 2024 at 08:58 UTC | |
by ikegami (Patriarch) on Aug 24, 2024 at 15:26 UTC | |
by perlfan (Parson) on Aug 24, 2024 at 15:55 UTC | |
|