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: border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Structure of the multitasking server Date: Sun, 15 Mar 2015 09:52:56 +0100 Organization: A noiseless patient Spider Message-ID: References: <8b4d1170-22e6-40d3-8ed1-096dc0163491@m36g2000hse.googlegroups.com> <71b51c8e-6bed-4156-9f52-31bef57b8575@googlegroups.com> <871tktuc9i.fsf@adaheads.sparre-andersen.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 15 Mar 2015 08:52:09 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="5116"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FYXA1nURdZSmAJCrAO6Uj" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: Cancel-Lock: sha1:7FwiA+40birdUrXj0Zf1MxqR6uc= Xref: number.nntp.giganews.com comp.lang.ada:192481 Date: 2015-03-15T09:52:56+01:00 List-Id: Le 15/03/2015 08:43, gautier_niouzes@hotmail.com a écrit : > There is 100% load in my case. 8 worker tasks, 8 CPUs, all busy with > the number crunching. What I'm doing is running computation jobs in > parallel on different tasks and ensuring all tasks are busy. Each > time a worker is done, it gets quickly a new job and I'm happy. > > ... If you give the producer a lower priority than the workers, it will be activated only when workers are done, and busy waiting is no more a problem. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr