qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Iwan Budi Kusnanto <ibk@labhijau.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Qemu coroutine behaviour on blocking send(3)
Date: Fri, 28 Nov 2014 13:55:00 +0700	[thread overview]
Message-ID: <CALv1wjHW_YxJvLkEkHi0-sg8XjT+H9xbqLjPmzkUGToGBowd7g@mail.gmail.com> (raw)
In-Reply-To: <CALv1wjGCdyW+JG2C2m+x1nDCEBdnSxOgiw=_a75-N7H+XQYs9A@mail.gmail.com>

I meant, does the coroutine will do yield internally when it get
blocked on send(3)?

On Fri, Nov 28, 2014 at 1:50 PM, Iwan Budi Kusnanto <ibk@labhijau.net> wrote:
> Hi all,
>
> I just found about coroutine in Qemu and it looks good for my use case.
> I have a question about this.
> I found this
> "Coroutines are cooperatively scheduled threads of control. There is
> no preemption timer that switches between coroutines periodically,
> instead switching between coroutines is always explicit. Coroutines
> run until termination or an explicit yield."
> at http://blog.vmsplice.net/2014/01/coroutines-in-qemu-basics.html
>
> How about the case where we do blocking send(3) on socket?
>
> Regards,
>
> --
> Iwan Budi Kusnanto



-- 
Iwan Budi Kusnanto

  reply	other threads:[~2014-11-28  6:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28  6:50 [Qemu-devel] Qemu coroutine behaviour on blocking send(3) Iwan Budi Kusnanto
2014-11-28  6:55 ` Iwan Budi Kusnanto [this message]
2014-11-28 12:47   ` Stefan Hajnoczi
2014-11-28 13:46     ` Iwan Budi Kusnanto
2014-11-28 14:15       ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALv1wjHW_YxJvLkEkHi0-sg8XjT+H9xbqLjPmzkUGToGBowd7g@mail.gmail.com \
    --to=ibk@labhijau.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).