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-04-01 04:16:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!iad-peer.news.verio.net!news.verio.net!newsfeed.vmunix.org!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: Tue, 1 Apr 2003 14:17:17 +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 1049199410 3988949 212.97.169.103 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:35857 Date: 2003-04-01T14:17:17+02:00 List-Id: Chad R. Meiners dice... > oops darn send button. :) > hmm. I think I miscommunicated my point. First, writing operating system > independent multi-tasking program is not obvious since tasking is often > misunderstood. For example an common error is placing potentially blocking > system calls (such as file IO) within a protected action. On most compilers > however wrapping your put_lines in a protected object does not cause any > problems, but some compilers might be able to detect that a blocking call is > being made at runtime and raise a Program_Error exception. Care needs to > taken to implement a multi-tasking program in a way that its OS calls are > properly syncronized with the tasking system reguardless of the OS or > compiler Yes, one can always made mistakes. I'm more concerned about programs which doesn't use OS things nor do blocking calls inside protected objects. Programs which should be (fairly?) portable. > btw, what workarounds are you refering to? I was referring to the two first points in my other post: the need to raise your base priority to realtime class (with the danger it is if your program is buggy), and to know what are the mapping between the 31 priorities in system.priority and the 7 in NT, which I have not handy, BTW, but could look if you are interested. All this begins because at my college they use Ada to teach the real time programming subject. In the past we used ms-dos, meridian Ada (I think), and some hardware ad-hoc to simulate a vehicle and a dam. Later, when everything was being upgraded to windows, they found these things. I don't know what they are doing currently, but I suspect they never used windows in the end for the subject. -- ------------------------- Jano 402450.at.cepsz.unizar.es -------------------------