|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] fixing qemu busy wait |
Date: | Sat, 16 Feb 2013 14:06:15 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 2013-02-15 03:12, Orr Dvory wrote:
when debugging with qemu(user mode), qemu waits in infinite loop to read a signal from gdb (when it waits on breakpoint for example). I added sleeps to reduce the cpu usage from 100% to about ~0%.
Wouldn't it be better to toggle the O_NONBLOCK state of the file descriptor across this loop?
r~
[Prev in Thread] | Current Thread | [Next in Thread] |