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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: do ada tasks run accross 16 cpu boxs? or stuck on 1 cpu? Date: Tue, 07 May 2013 22:45:19 +0200 Organization: A noiseless patient Spider Message-ID: <874neea59c.fsf@ludovic-brenta.org> References: <19811f9b-0fe9-449c-a082-4764a2bc66c4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="4a1a7815e62c5b72d61656df32f84fd2"; logging-data="18085"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/v57nm0/Nt8xOsHSC8DmFp" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:cjkgHWrf3uMOrB66Cug0PVr8sTs= sha1:yP9+fDt/l12dGxhP5C+mE+YjRjA= Xref: news.eternal-september.org comp.lang.ada:15410 Date: 2013-05-07T22:45:19+02:00 List-Id: Jeffrey Carter writes on comp.lang.ada: > On 05/07/2013 01:16 PM, johannes falcone wrote: >> How would an ada program use 16 core box? >> >> Are the tasks green threads? meaning 1 cpu microthreads? or are they >> somehow green threads than can run on 16 cpus at same time? or are >> they like os threads and heavy? >> >> I think they are the best combo green threads than can use N cpus by >> being farmed out to all avaialble cpu as wrokers cpus .... but not >> sure.. > > This depends on the compiler. Most implement tasks so they use the > available processors, but some don't. And on the underlying operating system. With GNAT on GNU/Linux, threads are native and use all available CPU cores. -- Ludovic Brenta.