qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] spawning and killing threads in qemu


From: 陳韋任
Subject: Re: [Qemu-devel] spawning and killing threads in qemu
Date: Mon, 30 Jan 2012 17:52:48 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

> On Thu, Jan 26, 2012 at 1:35 PM, Paolo Bonzini <address@hidden> wrote:
> > On 01/26/2012 07:31 PM, Xin Tong wrote:
> >>
> >> When i attach gdb to qemu running in system mode, i often get things like
> >>
> >> [Thread 0x7ffed2013700 (LWP 29499) exited]
> >> [New Thread 0x7ffed2013700 (LWP 29500)]
> >>
> >> what spawns these threads and what do these threads do ?
> >
> >
> > The block layer's thread pool.

  Qemu 1.0 enable IO thread by default, I think that's why you can see there are
two threads. You can check block/raw-posix-aio.h, posix-aio-compat.c and 
linux-aio.c.

HTH, 
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj



reply via email to

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