comp.lang.ada
 help / color / mirror / Atom feed
From: Jano <nono@celes.unizar.es>
Subject: Re: tasking with GNAT 3.14p on windows
Date: Mon, 31 Mar 2003 19:58:05 +0200
Date: 2003-03-31T19:58:05+02:00	[thread overview]
Message-ID: <MPG.18f2a01651aa20aa9896cb@News.CIS.DFN.DE> (raw)
In-Reply-To: 7vu1djubmk.fsf@vlinux.voxelvision.no

Ole-Hjalmar Kristensen dice...

> Unless Microsoft has significantly improved the Pthreads support, it's
> not a good idea to implement the GNAT runtime on top of Pthreads on
> Windows.  From a quick look at the GNAT runtime, it seems like the
> native NT interface is used, not Pthreads.

Docs says that Ada tasks are mapped to native threads, I don't know if 
that leaves room for pthreads (which I ignore).

I tried recently something like that:

select
   delay 10.0;
   put_line("aborted);
then abort
   get_line(text, last);
end select;

trying to know the behavior with blocking I/O. In XP with -gnatP, you 
get indefinite wait for user input, but if more than 10 seconds has 
passed when you hit enter, you get also the "aborted" print.

Is that expected behavior? Gnat docs say that polling implements calls 
in each loop iteration / function call. Should I assume that if you 
haven't loops / calls, abort will never work properly?

I feel nevertheless very unsafe using anything else than trivial tasks 
in NT. The priority system of NT messes things greatly out of 
real_time_class, and that, for example, is never pointed in Gnat docs 
(in my knowledge).

Also, the faulty ceiling_priority model for protected objects is 
mentioned or not? I can't remember...

-- 
-------------------------
Jano
402450.at.cepsz.unizar.es
-------------------------



  reply	other threads:[~2003-03-31 17:58 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-30 18:49 tasking with GNAT 3.14p on windows Bernd Specht
2003-03-30 20:19 ` James S. Rogers
2003-03-30 22:14   ` Jano
2003-03-31  2:53     ` James S. Rogers
2003-03-31  6:32       ` James S. Rogers
2003-03-31  6:56       ` Sergey Koshcheyev
2003-03-31  9:00         ` 
2003-03-31 19:09       ` Bernd Specht
2003-03-31 18:14     ` Chad R. Meiners
2003-03-31 21:08       ` Jano
2003-03-31  7:57 ` 
2003-03-31  9:30   ` Ole-Hjalmar Kristensen
2003-03-31 17:58     ` Jano [this message]
2003-03-31 18:30       ` Chad R. Meiners
2003-03-31 22:16         ` Jano
2003-03-31 23:09           ` Chad R. Meiners
2003-03-31 23:44           ` Chad R. Meiners
2003-04-01 12:17             ` Jano
2003-04-01  2:40         ` Robert A Duff
2003-04-01  4:17           ` Chad R. Meiners
2003-04-01  6:25             ` Jano
2003-04-01 15:33               ` Pascal Obry
2003-04-01  8:42           ` Dmitry A. Kazakov
2003-04-02 13:35             ` Alfred Hilscher
replies disabled

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