[bind10-dev] Threads and resolvers, was more about cache (Re: cache effectiveness)
Michal 'vorner' Vaner
michal.vaner at nic.cz
Thu Feb 28 13:30:15 UTC 2013
Hello
On Thu, Feb 28, 2013 at 12:24:56PM +0100, Shane Kerr wrote:
> The main issue with using threads is that we end up with fate sharing,
> so that if we have a coding bug we lose all state on a process and have
> to re-start ALL recursive resolution.
I'd disagree on this point. I believe the worst part about threads is that it is
almost impossible to lock everything that is shared between them properly. And I
don't talk about the cache only, but also several other things, like logging,
configuration access, etc. Does anyone really know what happens if we use asio
with multiple threads with the same socket, for example?
I'd like to avoid that kind of questions if at all possible. When it comes to
threads, I'm a coward and prefer to run than to fight.
With regards
--
No, I will not change your lightbulb.
Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20130228/892b34f6/attachment.bin>
More information about the bind10-dev
mailing list