From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: assigning priority to task
Date: Tue, 23 Sep 2014 22:32:53 -0700
Date: 2014-09-23T22:32:53-07:00 [thread overview]
Message-ID: <lvtl25$cjh$2@dont-email.me> (raw)
In-Reply-To: <b76bef67-37b3-47eb-8ecd-448ef3e0f6b9@googlegroups.com>
On 09/23/2014 08:39 PM, Stribor40 wrote:
> Also my box has 2 cores. Is there way in ada to see which core is running which task?
On many modern processors, each core can execute 2 tasks at the same time
(effectively). So it may be possible for all 4 tasks in your example to run at
the same time.
An Ada-12 compiler that implements Annex D has pkg
System.Multiprocessors.Dispatching_Domains (ARM D.16.1) that lets you determine
the CPU that a task is running on, as well as aspect CPU to force a task to run
on a specific CPU. Compilers for earlier versions of Ada may have
vendor-specific ways to do similar things.
--
Jeff Carter
"All citizens will be required to change their underwear
every half hour. Underwear will be worn on the outside,
so we can check."
Bananas
29
next prev parent reply other threads:[~2014-09-24 5:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-24 1:50 assigning priority to task Stribor40
2014-09-24 3:31 ` Jeffrey Carter
2014-09-24 3:36 ` Stribor40
2014-09-24 5:28 ` Jeffrey Carter
2014-09-24 10:09 ` Stribor40
2014-09-24 19:36 ` Simon Wright
2014-09-24 3:39 ` Stribor40
2014-09-24 5:32 ` Jeffrey Carter [this message]
2014-09-24 16:01 ` Anh Vo
2014-09-24 11:17 ` AdaMagica
2014-09-24 13:17 ` Stribor40
2014-09-24 14:55 ` Björn Lundin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox