linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Krishnappa Abhijith-A21204 <abhijith@motorola.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Regarding Process creation in UML tracing thread mode
Date: Wed, 21 Mar 2007 11:54:09 -0400	[thread overview]
Message-ID: <20070321155409.GB6962@c2.user-mode-linux.org> (raw)
In-Reply-To: <0A01463223B8164194908CAC85B66A1201B0F107@ZMY16EXM67.ds.mot.com>

On Wed, Mar 21, 2007 at 10:11:48PM +0800, Krishnappa Abhijith-A21204 wrote:
> Also from your below response it means that: UML just have a
> task_structure maintained....
> Also I never saw the UML specific schedule() code in .../arch/um does
> UML uses the host schedule itself ?

UML, like any other port, uses the schedule() in kernel/sched.c.  The
UML-specific context switching indirectly uses the host's scheduler
when it switches from one host process to another.  TT mode has the
outgoing process sleeping in a read() on a pipe after waking up the
incoming process from its read by writing a byte down its pipe.

But the host makes no scheduling decisions between UML processes - the
UML scheduler makes the decisions and the host scheduler just decides
when the process chosen by the UML scheduler actually gets some CPU
time.

				Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      reply	other threads:[~2007-03-21 15:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-21 11:51 [uml-devel] Regarding Process creation in UML tracing thread mode Krishnappa Abhijith-A21204
2007-03-21 13:55 ` Jeff Dike
2007-03-21 14:11   ` Krishnappa Abhijith-A21204
2007-03-21 15:54     ` Jeff Dike [this message]

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=20070321155409.GB6962@c2.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=abhijith@motorola.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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