comp.lang.ada
 help / color / mirror / Atom feed
From: Michal Nowak <vinnie@inetia.pl>
Subject: Re: Multitasking
Date: Mon, 09 Dec 2002 23:27:02 +0100
Date: 2002-12-09T23:27:02+01:00	[thread overview]
Message-ID: <mailman.1039472282.420.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <8bW1jK0+ACB@lemmies.lb.bawue.de>

On 2002-12-09 at 10:57 lemchens@lemmies.lb.bawue.de wrote:

>>> If yes, what and how do i get them running independent?
>> You did it. But what do you want to achieve with your code?
>
>I was thinking about a monitoring application, where the
>monitored items would be monitored by different tasks and
>the main task only runs in a loop, triggering the tasks
>and getting the results. So i stumbled on this issue.
>
>Seems to be a better approach, to split the triggering/
>monitoring and the resultholding in two different tasks.

It looks like a problem from real-time systems domain.
You may have some monitoring tasks running in an infinite
loop which read values from some device at constant time
intervals. Next, they may place the values in a buffer 
(think of using protected objects for that purpose). 
These tasks should not be blocked by accepting entries
or performing time-consuming operations (like console
I/O). Create also a task which will read the values 
from buffer and do something with them (for example
visualize them on the screen).

Happy tasking,
   - Michal


-- -----------------------------------------------------------------
--   ___        _
--  / _ \      | |                      I Choose Ada:
-- | |_| |  ___| |   _____   The Most Trusted Name in Software (TM)
-- |  _  | | __  |  | __  | 
-- |_| |_| |_____|_ |_____|_ http://www.adaic.org/whyada/choose.html
--
-- -----------------------------------------------------------------




  reply	other threads:[~2002-12-09 22:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-07 12:16 Multitasking arvids lemchens
2002-12-07 14:09 ` Multitasking SteveD
2002-12-09  7:43   ` Multitasking arvids lemchens
2002-12-07 14:10 ` Multitasking Michal Nowak
2002-12-09  9:57   ` Multitasking arvids lemchens
2002-12-09 22:27     ` Michal Nowak [this message]
2002-12-07 21:33 ` Multitasking Dennis Lee Bieber
2002-12-08  0:17   ` Multitasking Dennis Lee Bieber
2002-12-09  9:54     ` Multitasking arvids lemchens
2002-12-09 20:48       ` Multitasking Dennis Lee Bieber
2002-12-11 12:45         ` Multitasking John English
2002-12-11 19:34           ` Multitasking Dennis Lee Bieber
replies disabled

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