Thread handling

Hamid Maadani hamid at dexo.tech
Tue Aug 23 17:59:49 UTC 2022


Good day all,

I'm working on a MongoDB DLZ for bind9, and have a few questions about the multi-threaded version of named:
1. Is there a pre-processor flag I can use to determine if thread support is enabled? Can't seem to find it in configure.ac
2. named does not fork itself, or create child processes, correct?
3. when multi-threading is enabled, does named still call dlz_create only once when loading the shared object (dlopen)?
4. when multi-threading is enabled, how is each request handled? are there multiple worker threads and requests passed to them? or would each request spin up a new thread? Trying to figure out how dlz_lookup is called in a multi-threaded version.

Would appreciate if someone can answer these, or point me in the right direction if this is not the appropriate forum to ask.

Regards
Hamid Maadani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20220823/4d939c26/attachment.htm>


More information about the bind-users mailing list