linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Regarding context switching in UML.
@ 2007-03-19  3:01 Krishnappa Abhijith-A21204
  2007-03-19 17:40 ` Jeff Dike
  0 siblings, 1 reply; 2+ messages in thread
From: Krishnappa Abhijith-A21204 @ 2007-03-19  3:01 UTC (permalink / raw)
  To: user-mode-linux-devel


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

Hi,
        Regarding Context switching in UML.
Each process running in UML will have corresponding process in HOST.
So when the context switching in HOST happens, UML has to switch the
corresponding UML process by saving context etc...
will this be done by tracing thread.... Also how does process running in
HOST notifies UML to switch ?
 
Also I've read in one of the article that UML schedules its process by
itself..? How this is done ?
 
 
thanks a lot for all the help.
Abhi

[-- Attachment #1.2: Type: text/html, Size: 1791 bytes --]

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

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [uml-devel] Regarding context switching in UML.
  2007-03-19  3:01 [uml-devel] Regarding context switching in UML Krishnappa Abhijith-A21204
@ 2007-03-19 17:40 ` Jeff Dike
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2007-03-19 17:40 UTC (permalink / raw)
  To: Krishnappa Abhijith-A21204; +Cc: user-mode-linux-devel

On Mon, Mar 19, 2007 at 11:01:40AM +0800, Krishnappa Abhijith-A21204 wrote:
>         Regarding Context switching in UML.
> Each process running in UML will have corresponding process in HOST.

In tt and skas0 mode, roughly yes.

> So when the context switching in HOST happens, UML has to switch the
> corresponding UML process by saving context etc...
> will this be done by tracing thread.... Also how does process running in
> HOST notifies UML to switch ?

It does so by calling the UML's schedule().

The actual context switching is done by the outgoing process sleeping
after waking up the incoming process.

In tt mode, this is done by using a pipe as a semphore.  A sleeping
process is sleeping in read on a pipe, and will be woken up when an
outgoing process writes a byte into the other end.

> Also I've read in one of the article that UML schedules its process by
> itself..? How this is done ?

It has its own scheduler.

The fact that you ask this question, and that you seem to think there
is some sort of special relationship between UML and the host kernel,
suggests that you have some basic misunderstandings.

				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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-19 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19  3:01 [uml-devel] Regarding context switching in UML Krishnappa Abhijith-A21204
2007-03-19 17:40 ` Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox