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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dc89792b5613be6a X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: Converting Ada Tasks To VxWorks Tasks? Date: 2000/04/14 Message-ID: <38F79478.5218D61@averstar.com>#1/1 X-Deja-AN: 611292101 Content-Transfer-Encoding: 7bit References: <1crJ4.142$d21.18564@elnws01> <8d5ivg$ho9$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@inmet2.burl.averstar.com X-Trace: inmet2.burl.averstar.com 955749497 5162 141.199.8.164 (14 Apr 2000 21:58:17 GMT) Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 NNTP-Posting-Date: 14 Apr 2000 21:58:17 GMT Newsgroups: comp.lang.ada Date: 2000-04-14T21:58:17+00:00 List-Id: Michael Hartsough wrote: > ... > > Semaphores have priority queues, but I haven't figured out a way > to implement a Select statement that'll use semaphores and be > able to handle a guarded accept without performing some sort > of polling. > > Anyways, if anyone can provide me with some references to work that's > already been accomplished in this area I'd be mighty grateful. Most Ada run-times are built on just a few low-level primitives of the underlying system, in part because the required high-level Ada semantics rarely match exactly the high-level primitives provided by a given RTOS. As far as select statements, these require some relatively complex data structures built up by the Ada run-time system, plus some fairly low level signaling primitives (e.g. binary semaphores, event flags, etc.) provided by the underlying RTOS. Since the GNAT run-time is open source, you could conceivably just go and read the implementation for select statements, etc. and figure out what you need to do. It is straightforward, but far from trivial... I might put in a plug for our Ada 95 compiler that uses optimized ANSI C as its intermediate language. This would allow you to reuse the existing Ada code, and easily interface with C/C++ code, and give your boss some readable C code to study when he is curious what you are doing... > > Thanks, > MJH -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Distributed IT Solutions (www.averstar.com/tools) AverStar (formerly Intermetrics, Inc.) Burlington, MA USA