qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qemu-clock: add an alarm timer based on timerfd


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] qemu-clock: add an alarm timer based on timerfd
Date: Wed, 19 Sep 2012 10:39:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0

Il 19/09/2012 09:44, Jan Kiszka ha scritto:
>> > Looks good.  I think Peter Portante tested something similar, and found no 
>> > big
>> > difference between the two.  But it's a good thing and, in my opinion, for
>> > non-timerfd OSes we should simply adjust the select() timeout and not 
>> > bother
>> > with signals.
> What would be the advantage of timerfd over select? On Linux, both use
> hrtimers (and low slack for RT processes). I'm starting to like the
> select/WaitForMultipleObjects pattern as it would allow to consolidate
> over basically two versions of timers and simplify the code.

Oh, I didn't know this.  Even better.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]