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-Thread: 103376,3f60acc31578c72b,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeedt0.toon.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Norbert Caspari Newsgroups: comp.lang.ada Subject: question about tasks, multithreading and multi-cpu machines Date: Tue, 14 Mar 2006 17:26:53 +0100 Organization: T-Online Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1142353613 00 22016 91DCvvPLNx1XST9p 060314 16:26:53 X-Complaints-To: usenet-abuse@t-online.de X-ID: XuykdiZDoeQNAmnqv0qKqUXKc4-IX-sxfIjE38v0E8UU8sw+Jl+G8p User-Agent: KNode/0.4 Xref: g2news1.google.com comp.lang.ada:3355 Date: 2006-03-14T17:26:53+01:00 List-Id: In Ada it is possible to declare multiple parallel running "tasks". But for my opinion the keyword "task" is somewhat misleding because in fact, those "tasks" are really threads. If I run such a program on a multi-cpu machine, the process itself will use only one cpu, even though I create several "tasks". I tested this with gnat v3.15p under HPUX 11 on a multi-cpu server. How can I write my code to utilize all cpu's on such a machine? Is there a different way in Ada to perform multi-tasking instead of multi-threading? Thank you for your help! Best regards, Norbert