comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com (Tom Moran)
Subject: Re: Looking for implementation idea
Date: 1999/02/07
Date: 1999-02-07T00:00:00+00:00	[thread overview]
Message-ID: <36bded94.1470027@news.pacbell.net> (raw)
In-Reply-To: m2yamagkdi.fsf@wf-rch.cirr.com

>Not just in Ada, but generally.  IMHO, using tasking will have three
>general effects on your system:

>   1) It will be more complex

>   2) It will be less efficient

>   3) It will be less reliable
(1) depends on how independent the tasks are.  It they need to talk to
each other, yes, that can get complex.  If each port/socket is
essentially independent, and each can be run by a separate task that
blocks on IO, the design can be very simple.
(2) depends on the frequency of context switches. With the compilers I
have tried, on MS Windows, switch times are in the tens of
microseconds.  If you do that a lot, it's bad, but if you do it once
per millisecond, you're only talking a few percent of CPU.
(3) depends a lot on (1), complexity.  If it's simple, it's easy to
design it to be reliable, even if timing dependencies make it hard to
test it to be reliable.  If it's complex, it's harder to design
reliability, and perhaps it is worth cutting down on timing
dependencies to simply testing.
My $.02




  parent reply	other threads:[~1999-02-07  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-07  0:00 Looking for implementation idea Thomas Handler
1999-02-07  0:00 ` Corey Minyard
1999-02-07  0:00   ` Tucker Taft
1999-02-07  0:00     ` Corey Minyard
1999-02-08  0:00       ` Tucker Taft
1999-02-07  0:00         ` Corey Minyard
1999-02-08  0:00       ` robert_dewar
1999-02-08  0:00     ` dennison
1999-02-08  0:00       ` robert_dewar
1999-02-08  0:00       ` Tucker Taft
1999-02-09  0:00         ` robert_dewar
1999-02-11  0:00           ` Ehud Lamm
1999-02-07  0:00   ` Larry Kilgallen
1999-02-08  0:00     ` dewar
1999-02-08  0:00       ` dennison
1999-02-08  0:00         ` robert_dewar
1999-02-07  0:00   ` Tom Moran [this message]
1999-02-07  0:00     ` Corey Minyard
1999-02-08  0:00   ` Thomas Handler
1999-02-07  0:00 ` Niklas Holsti
1999-02-08  0:00   ` Thomas Handler
1999-02-09  0:00     ` Niklas Holsti
1999-02-10  0:00       ` Thomas Handler
1999-02-07  0:00 ` Paul Duquennoy
1999-02-08  0:00   ` Thomas Handler
replies disabled

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