From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,586481a3e3e7fdab,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-27 13:05:05 PST From: Manuel Carro Newsgroups: comp.lang.ada Subject: GNAT Task Scheduling in Linux Date: 27 Jun 2001 21:46:31 +0200 Organization: Computer Science Department, Technical U. of Madrid, Spain Message-ID: <7sbsn966zs.fsf@salmon.ls.fi.upm.es> NNTP-Posting-Host: salmon.ls.fi.upm.es X-Trace: panoramix.fi.upm.es 993671193 26931 138.100.10.4 (27 Jun 2001 19:46:33 GMT) X-Complaints-To: news@panoramix.fi.upm.es NNTP-Posting-Date: 27 Jun 2001 19:46:33 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!t-online.de!news-ge.switch.ch!news.rediris.es!news-2.rediris.es!138.100.251.9.MISMATCH!news.upm.es!panoramix.fi.upm.es!not-for-mail Xref: archiver1.google.com comp.lang.ada:9161 Date: 2001-06-27T19:46:33+00:00 List-Id: 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 ||