xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Xinxin Jin <xinxinjin89@gmail.com>
Cc: "Xen-devel@lists.xen.org" <Xen-devel@lists.xen.org>
Subject: Re: Can Xen sleep or wake up a thread?
Date: Tue, 8 Oct 2013 18:38:49 +0200	[thread overview]
Message-ID: <1381250329.15946.30.camel@Solace> (raw)
In-Reply-To: <CAJJWZczV3AqfSxN6J6Q4711xERq4wPq=SUfePS_cspSxp-QzXA@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1179 bytes --]

On mar, 2013-10-08 at 08:11 -0700, Xinxin Jin wrote:
> Hi everyone,
> 
> 
> I found in Xen, when synchronization between multiple threads is
> needed, Xen always uses busy wait or simple spin lock.
>
Mmm... What exactly is a 'thread' here? Are you talking about Xen
internals? If yes, I don't think there's much multithreading involved
there...

> In linux, the kernel can block a waiting thread and schedule other
> threads for execution. Why does Xen do not have this mechanism? 
>
Well, Linux, as a general purpose kernel, does indeed schedule a lot of
different stuff, yes, but I still don't see where you think Xen
could/should do something similar...

> I guess it is because the performance issue? A lot of appreciation for
> your answer !!
> 
Perhaps you can:
 - show some example of what you mean
 - describe what is the issue that you are seeing/trying to solve

Regards,
Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2013-10-08 16:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-08 15:11 Can Xen sleep or wake up a thread? Xinxin Jin
2013-10-08 16:38 ` Dario Faggioli [this message]
2013-10-09 11:15 ` George Dunlap
2013-10-09 11:24   ` Ian Campbell

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=1381250329.15946.30.camel@Solace \
    --to=dario.faggioli@citrix.com \
    --cc=Xen-devel@lists.xen.org \
    --cc=xinxinjin89@gmail.com \
    /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).