NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: aio co-op with socket kqueue on Netbsd
On Wed, Sep 3, 2014 at 3:38 PM, LeiMing <lmforreg%gmail.com@localhost> wrote:
>> Using signals is not going to perform very well, I would not do that...
> For the lack of implementation of realtime signals, maybe "settimer" api can
> be used to handle client's timeout. It's not "realtime signals" so kqueue can
> monitor it. Could you tell me whether use kqueue on signals will still have
> that bad effect on performance? If not, how do unix programmers usually
> implement "timeout"?
For timers you can use kqueue directly eg
https://wiki.netbsd.org/tutorials/kqueue_tutorial/#index5h2 - you do
not need to get kqueue to pick up a signal.
Justin
Home |
Main Index |
Thread Index |
Old Index