From: Robert Kaiser <rkaiser@sysgo.com>
To: Grzegorz Milos <gm281@cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] add timeouts to mini-os
Date: Mon, 2 Oct 2006 10:02:20 +0200 [thread overview]
Message-ID: <200610021002.20818.rkaiser@sysgo.com> (raw)
In-Reply-To: <8B56473E-DEFD-4010-ABD5-4E1931C4BD2F@cam.ac.uk>
Hi Gregor
Am Sonntag, 1. Oktober 2006 20:38 schrieb Grzegorz Milos:
> Hi Robert,
>
> Having timeout timers in MiniOS would be very useful indeed (I had a
> few people asking about that already).
>
> Timers in Xen and Linux are a bit different then your implementation
> for MiniOS (inspect xen/common/timer.c and <linux>/kernel/timer.c for
> more detail). The way that Linux/Xen handles timers is slightly more
> flexible, however the functionality that you could put in Mini-OS
> timer handler is very limited (you can only wake up a thread/set of
> threads really).
Which functionalities would you like to see that are currently missing?
> I think we can therefore stick to this solution for
> now. I'll have a look through the code tomorrow, and let you know if
> I have any comments.
Thanks.
(There are few shortcomings of my implementation that I'm well aware of
myself. For instance, I think it would be more efficient to unlink blocked
threads from the ready queue and keep the ones with pending timeouts in a
"timeout" queue, sorted by ascending expiry date. That way, it wouldn't be
necessary to walk the entire ready queue all the time to see if any timeouts
have expired: it would suffice to just look at the head of the timeout queue.
However, my goal was to keep things simple and to not change more than
absolutely necessary.)
Cheers
Rob
>
> Thanks.
> Gregor
>
> On 1 Oct 2006, at 00:18, Robert Kaiser (FH) wrote:
> > Hi Gregor,
> >
> > attached is a patch to mini-os. It removes the debug print of
> > current time
> > (which didnt work anyway) and adds support for timed sleeps. The
> > application
> > code now has a thread which is activated periodically (once every
> > second) by
> > means of the new sleep function and prints out the current time, so
> > the
> > program now actually does what the README says. The idle thread now
> > blocks as
> > long as necessary (i.e. until the nearest timeout expires) instead
> > if the
> > fixed 10 seconds as before.
> >
> > Please review it and consider for inclusion.
> >
> > Cheers
> >
> > Rob
> > <minios.patch>
--
Robert Kaiser
SYSGO AG
Office Mainz
Am Pfaffenstein 14 / D-55270 Klein-Winternheim / Germany
Tel.: +49-6136-814791 / Fax: +49-6136-9948-10
Email: robert.kaiser@sysgo.com / Web: http://www.sysgo.com
next prev parent reply other threads:[~2006-10-02 8:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-29 12:42 mini-os: gnttab.c does not compile Robert Kaiser (FH)
2006-08-30 6:06 ` Grzegorz Milos
2006-08-30 21:29 ` mini-os: more bugs (was: mini-os: gnttab.c does not compile) Robert Kaiser (FH)
2006-08-31 11:11 ` mini-os: gnttab.c does not compile Anil Madhavapeddy
2006-09-01 15:06 ` Keir Fraser
2006-09-01 15:10 ` Anil Madhavapeddy
[not found] ` <20060908090258.GA5423@cam.ac.uk>
[not found] ` <F75A8EBE-C89D-4396-98E3-ECE1A69F2EF9@cam.ac.uk>
2006-09-30 23:18 ` [PATCH] add timeouts to mini-os Robert Kaiser (FH)
2006-10-01 18:38 ` Grzegorz Milos
2006-10-02 8:02 ` Robert Kaiser [this message]
2006-10-02 16:44 ` Grzegorz Milos
2006-10-02 19:25 ` Grzegorz Milos
-- strict thread matches above, loose matches on Subject: below --
2006-10-17 11:10 John D. Ramsdell
[not found] <E1GZmv4-0001tc-3Y@host-192-168-0-1-bcn-london>
2006-10-17 11:32 ` John D. Ramsdell
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=200610021002.20818.rkaiser@sysgo.com \
--to=rkaiser@sysgo.com \
--cc=gm281@cam.ac.uk \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.