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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bc90e355ba0a1f8f,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-07 12:28:27 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: rstranders@yahoo.com (Ruben Stranders) Newsgroups: comp.lang.ada Subject: Ada multi-threaded programs do not terminate under RedHat Linux Date: 7 Nov 2003 12:28:27 -0800 Organization: http://groups.google.com Message-ID: <43f0a81.0311071228.6620c6c2@posting.google.com> NNTP-Posting-Host: 80.60.17.51 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1068236907 11109 127.0.0.1 (7 Nov 2003 20:28:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 7 Nov 2003 20:28:27 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:2229 Date: 2003-11-07T12:28:27-08:00 List-Id: I'm a Ada newbie and I have to make a very simple program to demonstrate the use of multithreading in Ada. For that purpose, I created the following program. ============================ procedure test is task type counter; task body counter is i : integer :=0; begin put_line("Start"); while i < 10000 loop i := i + 1; end loop; put_line("Finish"); end; task1 : counter; begin put_line("Test"); end; ============================ I've compiled it under RedHat Linux 9.0 with "gnatmake test.adb". Unfortunately, the resulting program doesn't terminate. Instead of the expected output: Starting Finished Test it only prints the first two lines. The body of the procedure "test" is never called. I've tried this with several other programs and on different machines (all with RedHat 9.0). Can anyone give me a pointer? Regards, Ruben