comp.lang.ada
 help / color / mirror / Atom feed
From: Adrien Plisson <aplisson-news@stochastique.net>
Subject: Re: i'm going crazy with task
Date: Wed, 01 Dec 2004 17:41:23 +0100
Date: 2004-12-01T17:41:23+01:00	[thread overview]
Message-ID: <41adf355$0$13460$ba620e4c@news.skynet.be> (raw)
In-Reply-To: <5eorq0lbcd90apmjoe46ob4pj96pchtcno@4ax.com>

Dennis Lee Bieber wrote:
> 	Such should only require some data structure for the event
> timing, and the externally created process to be started (path to a
> script file, perhaps). But the original question seemed to be assuming
> diverse internally coded processes... Okay, I suppose timed one-shots
> could still be applied to internal code modules -- and those could be
> (very rough description here) handled as a sort of call-back from the
> timer to plain procedures.

i was only making suppositions on what the OP was trying to do, i don't speak 
on behalf of him. so, until he posts some more informations, we can't assume 
anything on what he is trying to do. i only raised the point about the 
scheduler because the term is confusing.

you are right pointing out that a "task scheduler" should not need that much 
tasks, but you forgot a case which forces the use of tasks. consider that 
actions of the scheduler are internal procedures. if you implement it with 
callbacks, the scheduler will block until the actions terminates. if actions 
are lengthy, you have a problem. the solution is from the scheduler to create a 
new task which will call the procedure.

anyway, even when doing this there is no need for a big array of tasks...

-- 
rien



  parent reply	other threads:[~2004-12-01 16:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-30 15:56 i'm going crazy with task mferracini
2004-11-30 16:11 ` mferracini
2004-11-30 16:33   ` Alex R. Mosteo
     [not found] ` <lglqq0lvgvdbr0gbjhqhit27omga2cm7r5@4ax.com>
2004-12-01 10:16   ` Adrien Plisson
     [not found]     ` <5eorq0lbcd90apmjoe46ob4pj96pchtcno@4ax.com>
2004-12-01 16:41       ` Adrien Plisson [this message]
2004-12-02  9:44         ` mferracini
     [not found]           ` <gmduq0hd1l97714g219custsomfo9b8an6@4ax.com>
2004-12-02 17:38             ` Adrien Plisson
replies disabled

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