comp.lang.ada
 help / color / mirror / Atom feed
* GNAT Task Scheduling in Linux
@ 2001-06-27 19:46 Manuel Carro
  2001-06-28 14:53 ` Ted Dennison
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Carro @ 2001-06-27 19:46 UTC (permalink / raw)



    Hello.  I have a question regarding the (default) task scheduling
policy of GNAT (3.13p) in Linux.  I have a simple program which starts
some tasks which increment a nonprotected variable.  The tasks should
start (almost) at once, so that the variable is incremented
concurrently (and wrongly), and the problem is that every task is
started only after another task has finished.  Hence, the problem of
concurrent access does not show up.

    Changing the adalib and adainclude links in the distribution from
rts-sfu to rts-native solved the issue: the different tasks start
(almost) at once.  The question is if there is any way to force the
latter behavior *without* fiddling around with the links.  I am not
terribly worried about performance, because we will use Ada as an
educational tool in an academic environment.

    Thanks a lot in advance.


-- 
          ||            Manuel Carro -- DLSIIS            ||
          ||           e-mail: mcarro@fi.upm.es           ||
          ||      http://lml.ls.fi.upm.es/~boris          ||
          ||    http://clip.dia.fi.upm.es/Software/Ciao   ||
          || Phone: +34 91 336-7455  FAX: +34 91 336-7412 ||




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

end of thread, other threads:[~2001-06-28 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-27 19:46 GNAT Task Scheduling in Linux Manuel Carro
2001-06-28 14:53 ` Ted Dennison

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