comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Ada 95 tasking problems with Ada 83 code
Date: 07 Sep 2000 06:35:51 +0100
Date: 2000-09-07T06:35:51+01:00	[thread overview]
Message-ID: <x7vd7igydag.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 39B5AE43.D2EA477C@mtws.visicom.com

Wayne Lydecker <wayne@mtws.visicom.com> writes:

> That was exactly what I had in mind.  The majority of our tasks (~75)
> are used to synchronize access to the databases.  Most of the rest are
> for alarm clocks, which were poorly implemented.  I agree 100% that a
> good tasking model works fine for 100+ tasks, but when the tasks have
> infinite loops with a "delay duration'small" to allow a context switch
> for a type of "round robin" scheduling, it's time for a redesign (which
> is really what I want to do).

Good plan! (you may need to look at protected types and semaphores,
mutexes built on them for the synchronisation aspects).

Did you spot Jeff Creem's post about the GNAT tasking implementations
available on Linux? the default (rts-fsu) runs all tasks in the
context of one process -- block one on I/O and you've blocked them
all. Switch to rts-native.



  reply	other threads:[~2000-09-07  5:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-30  0:00 Ada 95 tasking problems with Ada 83 code Wayne Lydecker
2000-08-30  0:00 ` Richard Riehle
2000-08-30  0:00   ` Wayne Lydecker
2000-08-31  0:00     ` Jeff Creem
2000-08-31 20:07     ` Robert Barron
2000-09-01  3:21   ` Wayne Lydecker
2000-09-01  4:17     ` Richard Riehle
     [not found]       ` <39B046AE.A05C82AA@mtws.visicom.com>
2000-09-02  1:04         ` Jeff Creem
2000-09-05 19:11           ` Richard Riehle
2000-09-05 17:12         ` Richard Riehle
2000-09-06  0:19           ` Ted Dennison
2000-09-06  2:38           ` Wayne Lydecker
2000-09-07  5:35             ` Simon Wright [this message]
2000-09-02 22:54       ` Pat Rogers
2000-09-05 17:31         ` Richard Riehle
2000-09-05 18:51           ` Pat Rogers
2000-09-05 19:00             ` Richard Riehle
2000-09-05 19:33               ` Pat Rogers
2000-09-01 20:01     ` Robert A Duff
2000-08-31 16:00 ` Bill Dale
2000-08-31 17:57   ` Richard Riehle
replies disabled

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