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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,def01441310021b3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-29 04:39:15 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Will (abstract) Ada code improve over time ? Message-ID: References: <3B557455.B3ADFEE@ffi.no> <3B57DF48.E1C23D42@ffi.no> <3B57EFCB.C5EC2F12@nbi.dk> <9k03ot$2me$3@news.tpi.pl> Organization: LJK Software Date: 29 Jul 2001 07:39:05 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 996406748 216.44.122.34 (Sun, 29 Jul 2001 11:39:08 GMT) NNTP-Posting-Date: Sun, 29 Jul 2001 11:39:08 GMT Xref: archiver1.google.com comp.lang.ada:10686 Date: 2001-07-29T07:39:05-05:00 List-Id: In article <9k03ot$2me$3@news.tpi.pl>, taw@pb220.legnica.sdi.tpnet.pl (Tomasz Wegrzanowski) writes: > Not true, because C uses hardware/OS threading model, while Ada uses own > threading model, so unless hardware and OSes will be designed for Ada, > C code will perform better (C code can change threading model if > hardware/OS design changes with no problem). You do not know, without looking under the covers (of the documentation) what tasking _mechanism_ is being used. Some Ada compilers use that of the OS/hardware, while other Ada compilers use a tasking _mechanism_ of their own. Some offer a choice, but regardless of the _mechanism_ used, the _model_ presented by Ada is the same. The _model_ is where your program must conform. With Ada there is only one. One possible reason for _not_ using the OS/hardware mechanism is the performance cost of a context switch. If your compiler offers such an option, you can make a choice without much human effort.