From: anders@legolas.gidenstam.org (Anders Gidenstam)
Subject: Re: time-slicing
Date: Mon, 15 Jul 2002 21:05:58 +0200
Date: 2002-07-15T19:06:04+00:00 [thread overview]
Message-ID: <me6vga.1s2.ln@legolas> (raw)
In-Reply-To: pan.2002.07.15.16.01.11.552776.1135@gmx.net
In article <pan.2002.07.15.16.01.11.552776.1135@gmx.net>,
Jan Prazak <janp9@gmx.net> writes:
> Maybe gnat doesn't even support time-slicing, but there is a command line
> switch and also a pragma (but as I have said, both unfortunately don't
> work).
> But actually I don't need this at the moment, it was just a question.
Hi,
I think the time-slice is a lot longer than the time it takes to call
Put_Line twice, so it is quite unlikely that you will get a task switch
in the middle.
The following small program may give you some idea on how much work
your computer actually manages to do during one time-slice.. and it
will also show whether your gnat installation does time-slicing or
not.
(I certainly expects it does, with the standard Ada runtime library
for Linux tasks are mapped to Linux threads and those are time-sliced
by default.)
with Ada.Text_IO;
procedure Task_Test is
task type Writer (C : Character);
task body Writer is
begin
loop
Ada.Text_IO.Put (C);
end loop;
end Writer;
A : Writer ('A');
B : Writer ('B');
begin
null;
end Task_Test;
/Anders
--
--------------------------------------------
"A well-written program is its own heaven;
a poorly-written program is its own hell."
- The Tao of Programming
next prev parent reply other threads:[~2002-07-15 19:05 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-15 11:25 gnat: time-slicing Jan Prazak
2002-07-15 8:44 ` Dale Stanbrough
2002-07-15 19:10 ` Jan Prazak
2002-07-15 17:16 ` David C. Hoos
2002-07-15 23:30 ` Jan Prazak
2002-07-16 0:54 ` Jan Prazak
2002-07-16 10:46 ` Lutz Donnerhacke
2002-07-16 11:57 ` Aaro Koskinen
2002-07-16 12:57 ` SteveD
2002-07-16 15:18 ` Florian Weimer
2002-07-16 13:29 ` Marin David Condic
2002-07-17 19:29 ` Jan Prazak
2002-07-15 13:07 ` time-slicing David C. Hoos
2002-07-15 14:56 ` time-slicing Ian Broster
2002-07-15 19:10 ` time-slicing Jan Prazak
2002-07-15 19:10 ` time-slicing Jan Prazak
2002-07-15 19:05 ` Anders Gidenstam [this message]
2002-07-15 23:30 ` time-slicing Jan Prazak
2002-07-15 20:33 ` time-slicing Darren New
2002-07-16 16:30 ` time-slicing Pascal Obry
2002-07-16 23:05 ` time-slicing Jan Prazak
2002-07-16 21:33 ` time-slicing Robert Dewar
2002-07-15 21:03 ` gnat: time-slicing tmoran
2002-07-16 13:04 ` Jan Prazak
2002-07-16 21:29 ` Robert Dewar
2002-07-17 19:29 ` Jan Prazak
2002-07-17 16:44 ` Pascal Obry
2002-07-17 21:38 ` Jan Prazak
2002-07-17 19:21 ` Randy Brukardt
2002-07-17 22:44 ` Jan Prazak
2002-07-17 19:57 ` Marin David Condic
2002-07-18 18:38 ` Larry Kilgallen
2002-07-20 11:52 ` Robert Dewar
2002-07-17 19:43 ` Pascal Obry
2002-07-18 18:55 ` Jan Prazak
2002-07-18 17:01 ` Pascal Obry
2002-07-18 17:03 ` Pascal Obry
2002-07-18 22:38 ` chris.danx
2002-07-18 2:50 ` R. Tim Coslet
2002-07-18 12:54 ` SteveD
2002-07-20 11:56 ` Robert Dewar
2002-07-18 12:02 ` Frank J. Lhota
2002-07-19 2:33 ` Robert A Duff
2002-07-19 13:32 ` Jan Prazak
2002-07-19 23:46 ` Keith Thompson
2002-07-20 0:36 ` Robert A Duff
2002-07-20 4:25 ` Darren New
2002-07-20 11:47 ` Robert Dewar
2002-07-21 10:58 ` Keith Thompson
2002-07-31 22:28 ` Robert A Duff
2002-08-01 19:28 ` Erroneous execution? (was Re: gnat: time-slicing) Ben Brosgol
2002-08-01 22:03 ` Robert A Duff
2002-08-02 3:59 ` Ben Brosgol
2002-08-13 22:30 ` Robert A Duff
2002-08-02 4:17 ` Robert Dewar
2002-07-19 3:17 ` time-slicing SteveD
2002-07-19 13:32 ` time-slicing Jan Prazak
2002-07-19 12:41 ` time-slicing SteveD
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox