linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] preemption
Date: Sun, 23 May 2004 11:18:44 +0200	[thread overview]
Message-ID: <200405231118.44464.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <20040518183838.GA29175@ccure.user-mode-linux.org>

Alle 20:38, martedì 18 maggio 2004, Jeff Dike ha scritto:
> On Tue, May 18, 2004 at 06:47:26AM -0700, Sam King wrote:
> > >From what I can tell, when the guest kernel takes a
> >
> > timer interrupt (SIGALRM) it eventually updates the
> > tsk->need_resched parameter for processes that have
> > been running for too long.  However, I do not see
> > where the actual switch takes place except in the
> > interrupt_end() function which is only called as a
> > result of guest application system calls and signals.
>
> Exactly.  Every kernel entrance is either a system call or signal (a UML
> signal, not a process signal, BTW), so there is a preemption opportunity
> at every return to userspace.
But when you say "UML signal" (I guess a signal between the host UML threads) 
you mean even a timer interrupt, right? Otherwise I don't see how a 
non-syscalling process (a true CPU-hog, like SETI@home or such things) could 
be interrupted.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&opÌk
_______________________________________________
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:[~2004-05-23 10:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-18 13:47 [uml-devel] preemption Sam King
2004-05-18 18:38 ` Jeff Dike
2004-05-23  9:18   ` BlaisorBlade [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=200405231118.44464.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --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