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.8 required=5.0 tests=BAYES_00,URI_HEX autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8ddc02527645a844 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-31 09:57:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!69103-cm.able.ES!not-for-mail From: Jano Newsgroups: comp.lang.ada Subject: Re: tasking with GNAT 3.14p on windows Date: Mon, 31 Mar 2003 19:58:05 +0200 Message-ID: References: <3e87f4e2$1@epflnews.epfl.ch> <7vu1djubmk.fsf@vlinux.voxelvision.no> NNTP-Posting-Host: 69103-cm.able.es (212.97.169.103) X-Trace: fu-berlin.de 1049133456 3192510 212.97.169.103 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:35832 Date: 2003-03-31T19:58:05+02:00 List-Id: 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 -------------------------