From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPtpV-0000Df-Hw for qemu-devel@nongnu.org; Tue, 18 Mar 2014 09:13:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPtpQ-0001Kd-4n for qemu-devel@nongnu.org; Tue, 18 Mar 2014 09:13:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPtpP-0001KF-TD for qemu-devel@nongnu.org; Tue, 18 Mar 2014 09:13:12 -0400 From: Juan Quintela In-Reply-To: <87iorbll9i.fsf@blackfin.pond.sub.org> (Markus Armbruster's message of "Tue, 18 Mar 2014 13:54:49 +0100") References: <877g7rr8r0.fsf@elfo.mitica> <87iorbll9i.fsf@blackfin.pond.sub.org> Date: Tue, 18 Mar 2014 14:13:03 +0100 Message-ID: <87ppljps4g.fsf@elfo.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] How to understand the coroutine context? Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Le Tan , qemu-devel@nongnu.org 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:-) Later, Juan.