comp.lang.ada
 help / color / mirror / Atom feed
From: Manuel Carro <boris@lml.ls.fi.upm.es>
Subject: GNAT Task Scheduling in Linux
Date: 27 Jun 2001 21:46:31 +0200
Date: 2001-06-27T19:46:33+00:00	[thread overview]
Message-ID: <7sbsn966zs.fsf@salmon.ls.fi.upm.es> (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 ||




             reply	other threads:[~2001-06-27 19:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-27 19:46 Manuel Carro [this message]
2001-06-28 14:53 ` GNAT Task Scheduling in Linux Ted Dennison
replies disabled

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