[ntp:hackers] Patches to reinstate rank variable and add end
keyword.
Poul-Henning Kamp
phk at phk.freebsd.dk
Sun Aug 7 06:13:56 UTC 2005
In message <42F53C57.9030701 at sun.com>, Brian Utterback writes:
>To put a finer point on it: If you want to multithread ntpd, you wll
>need locks/mutexs/etc.
The main difference between threading/eventdriven in this case will
be for writes to file.
With threading we can park a thread on the write(2) system call, and
the rest of the application proceeds unaffected.
With eventdriven we risk stalling everything if a write takes long
time (flow-controlled serial port, down NFS server etc).
NTPD doesn't need to write much, so I think this will be a non-issue
in practice.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the hackers
mailing list