From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPuOD-0003ZD-AZ for qemu-devel@nongnu.org; Tue, 18 Mar 2014 09:49:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPuO8-0005ON-EI for qemu-devel@nongnu.org; Tue, 18 Mar 2014 09:49:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPuO8-0005OE-5w for qemu-devel@nongnu.org; Tue, 18 Mar 2014 09:49:04 -0400 From: Markus Armbruster References: <877g7rr8r0.fsf@elfo.mitica> <87iorbll9i.fsf@blackfin.pond.sub.org> <87ppljps4g.fsf@elfo.mitica> Date: Tue, 18 Mar 2014 14:48:58 +0100 In-Reply-To: <87ppljps4g.fsf@elfo.mitica> (Juan Quintela's message of "Tue, 18 Mar 2014 14:13:03 +0100") Message-ID: <87iorbk46t.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] How to understand the coroutine context? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com Cc: Le Tan , qemu-devel@nongnu.org Juan Quintela writes: > Markus Armbruster wrote: >> Juan Quintela writes: >> >>> Le Tan wrote: >>>> Hi, I am diving into the source code of qemu. I see the word >>>> "coroutine" appears in so many places. I can't figure out what it >>>> means. So, please, can anyone help me, telling me the mechanism or >>>> semantic of "coroutine"? Thanks! >>> >>> google, 1st hit, wikipedia: >>> >>> https://en.wikipedia.org/wiki/Coroutine >>> >>> A bit short resume: >>> >>> Getting "user"-threads when you don't have threads. >> >> More like getting multiple flows of control even though you don't want >> threads. > > If he don't understand coroutine, you think that flows of control has > any chance? O:-) Point taken & LOL