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: f849b,d275ffeffdf83655 X-Google-Attributes: gidf849b,public X-Google-Thread: 115aec,d275ffeffdf83655 X-Google-Attributes: gid115aec,public X-Google-Thread: 101b33,d275ffeffdf83655 X-Google-Attributes: gid101b33,public X-Google-Thread: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,d275ffeffdf83655 X-Google-Attributes: gid1108a1,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public From: Ken Keys Subject: Re: Ada vs C++ vs Java Date: 1999/01/14 Message-ID: <369E4A41.8D7DDA14@west.raytheon.com>#1/1 X-Deja-AN: 432653670 Content-Transfer-Encoding: 7bit References: <369C1F31.AE5AF7EF@concentric.net> <369D1F2B.138D1FB8@pwfl.com> Content-Type: text/plain; charset=us-ascii Organization: Raytheon Missile Systems Mime-Version: 1.0 Newsgroups: comp.lang.ada,comp.lang.c++,comp.vxworks,comp.lang.java,comp.java.advocacy,comp.realtime,comp.arch.embedded,comp.object,comp.lang.java.programmer Date: 1999-01-14T00:00:00+00:00 List-Id: Marin David Condic wrote: > Not entirely accurate. Ada has the Task construct which allows parallel > programming without dependence on the specific OS. Typical > implementations on Unix and WinNT platforms will be via system calls. > However, since Ada was originally targeted for embedded systems, a > number of implementations go directly to the bare hardware and the > implementation's runtime support has to provide the primitives for task > scheduling, etc. I suppose this is terribly off-topic discussing technical details in the middle of a flame war but... Have you (or do you have first hand knowledge of anyone who has) ever used an Ada Rendezvous in an RTOS environment, such as, say, Vxworks? Or do you, like everyone I have ever met, use the OS services (semaphores etc.) directly? > Tasks in Ada provide parallelism in a machine-independent and > invisible-to-the-programmer manner. I do not know of a similar mechanism > in either C++ or Java. Maybe it is there. Maybe not. You'd need someone > else to fill you in on that. Java has threads. In C++ it is more of a library issue. The C++ standard doesn't address it but Posix does. The RTOS probably includes a Posix library and if it doesn't, it probably doesn't support Ada either. You need to be concerned with reentrancy and synchronization issues when you choose a C++ STL library, especially if you plan to use iostreams or other such goodies. KLK