comp.lang.ada
 help / color / mirror / Atom feed
* Re: Feature suggestion: different task schedules
@ 2017-07-18  0:45 Randy Brukardt
  0 siblings, 0 replies; 25+ messages in thread
From: Randy Brukardt @ 2017-07-18  0:45 UTC (permalink / raw)


"Randy Brukardt" <randy@rrsoftware.com> wrote in message news:...
...
> To be more specific, Ada 95 and later allows control of task scheduling 
> with pragma , pragma, and others.

Probably should have finished this sentence before hitting "send"!!

"To be more specific, Ada 95 and later allows control of task scheduling 
with
pragma Task_Dispatching_Policy, pragma Locking_Policy, pragma
Queuing_Policy, and others."

                           Randy.




^ permalink raw reply	[flat|nested] 25+ messages in thread
* Feature suggestion: different task schedules
@ 2017-07-13 20:20 Victor Porton
  2017-07-13 21:58 ` Victor Porton
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Victor Porton @ 2017-07-13 20:20 UTC (permalink / raw)


I propose for Ada 2020 to add the following pragmas (and corresponding 
aspects) for tasks and task types:

pragma Schedule=>Thread;

the regular task.

pragma Schedule=>Manual;

the task runs only when a protected entry is called and stops at the next 
accept statement.

This is usually the fastest mode in the case of one-core system.

pragma Schedule=>Sometimes;

the task run in either of two above modes (with tasks of a task type not 
necessarily scheduled in the same way (some may be Thread and some Manual)).

The schedule mode may be chosen dependently on free CPU cores availability 
to make it the fastest.

pragma Schedule=>Dynamic;

a task with this schedule may switch between Thread and Manual mode at any 
moment of time. This is useful to use CPU cores effectively.

What do you think?

-- 
Victor Porton - http://portonvictor.org


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2017-07-24 19:56 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18  0:45 Feature suggestion: different task schedules Randy Brukardt
  -- strict thread matches above, loose matches on Subject: below --
2017-07-13 20:20 Victor Porton
2017-07-13 21:58 ` Victor Porton
2017-07-13 22:11   ` Victor Porton
2017-07-14  5:59 ` Pascal Obry
2017-07-14  8:37   ` Dmitry A. Kazakov
2017-07-15 11:30 ` Victor Porton
2017-07-15 19:23   ` Niklas Holsti
2017-07-15 20:01   ` Simon Wright
2017-07-16 18:48   ` Jeffrey R. Carter
2017-07-16 19:05     ` Dmitry A. Kazakov
2017-07-16 20:25       ` Simon Wright
2017-07-18  0:09     ` Randy Brukardt
2017-07-18  7:14       ` Dmitry A. Kazakov
2017-07-18 15:28         ` Shark8
2017-07-18 16:06           ` Dmitry A. Kazakov
2017-07-18 20:09         ` Randy Brukardt
2017-07-19  7:24           ` Dmitry A. Kazakov
2017-07-23 12:31             ` Victor Porton
2017-07-23 14:19               ` Egil H H
2017-07-23 20:03                 ` Victor Porton
2017-07-23 20:05                 ` Dennis Lee Bieber
2017-07-23 18:47               ` Dmitry A. Kazakov
2017-07-24 15:26               ` Alejandro R. Mosteo
2017-07-24 19:56                 ` Dmitry A. Kazakov

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