From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: Poor tasking performance
Date: Sat, 19 Jun 2004 16:19:38 -0400
Date: 2004-06-19T16:19:38-04:00 [thread overview]
Message-ID: <yZqdnc70OahGAkndRVn_iw@comcast.com> (raw)
In-Reply-To: <slrncd7rcg.bpr.adi@ppc201.mipool.uni-jena.de>
Adrian Knoth wrote:
> Is that normal? Only by adding one task which hangs in Get_Line
> increases the load so much?
>
> Environment is Linux 2.6.7 with Debian gcc-3.3 (unstable).
First, let me say you are lucky to get working results with that
combination. Most Ada users have skipped gcc-3.3. (I haven't switched
from 3.15p to gcc-3.4 yet, but that is my intent at some point.)
But I don't think that your question can be answered in an Ada context.
This is definitely an area where the underlying OS implementation of
reading from the console is going to account for most of the overhead.
If you are using Get_Immediate in Text_IO, you could switch to line at a
time reading and see if that helps. But I suspect that it won't--the OS
needs to poll the UART that buffers keyboard input at a certain rate to
avoid losing characters. With a different keyboard, or keyboard driver,
you might get very different results.
--
Robert I. Eachus
"Reason and experience both forbid us to expect that national morality
can prevail in exclusion of religious principles." -- George Washington
next prev parent reply other threads:[~2004-06-19 20:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-19 7:38 Poor tasking performance Adrian Knoth
2004-06-19 20:19 ` Robert I. Eachus [this message]
2004-06-19 23:51 ` Adrian Knoth
2004-06-19 23:58 ` Björn Persson
2004-06-20 5:28 ` Robert I. Eachus
2004-06-20 7:58 ` Adrian Knoth
2004-06-20 9:18 ` Björn Persson
2004-06-26 17:30 ` Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox