Re: Thread-safe caches
- From: "Alex Mizrahi" <udodenko@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 Nov 2007 15:01:36 +0200
PC> It may also be acceptable that the caches are not always updated, so if
PC> new entries in the caches are actually not written every now and then,
PC> that's fine, as long as the caches remain consistent...
i think plists are thread-safe when setq, rplaca and rplacd are atomic,
which i believe is true.
as for consistency question, it depends on nature of this cache -- are
concurrent incompatible updates possible and what to do in this case.
e.g. is it possible that one thread deletes entry while another updates it?
.
- Follow-Ups:
- Re: Thread-safe caches
- From: Duane Rettig
- Re: Thread-safe caches
- From: Juho Snellman
- Re: Thread-safe caches
- From: Pascal Costanza
- Re: Thread-safe caches
- References:
- Thread-safe caches
- From: Pascal Costanza
- Thread-safe caches
- Prev by Date: Re: Thread-safe caches
- Next by Date: Re: Thread-safe caches
- Previous by thread: Re: Thread-safe caches
- Next by thread: Re: Thread-safe caches
- Index(es):
Relevant Pages
|
|