comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: Task management
Date: 1999/06/17
Date: 1999-06-17T00:00:00+00:00	[thread overview]
Message-ID: <1999Jun17.190645.1@eisner> (raw)
In-Reply-To: dale-1706991329100001@dale.cs.rmit.edu.au

In article <dale-1706991329100001@dale.cs.rmit.edu.au>, dale@cs.rmit.edu.au (Dale Stanbrough) writes:
> I'm sure the answer to my question is no, but anyway...
> 
>    Is there a way to determine how many processors a computer has
>    so that you can spawn the appropriate # of tasks to take advantage
>    of them (e.g. you may want to create sufficient tasks to farm work
>    out to, but not so many that you get thrashing).

Well certainly the answer is yes in some cases, depending on the
operating system.  But the question itself may not be the right
question to be asking, as you probably really care about how many
processors in the computer might be allocated to your Ada program
at a time, considering how your compiler implements tasking, how
the OS controls allocation of processors to user programs for that
tasking model (e.g., threads vs. separate processes) etc.

Larry Kilgallen




  parent reply	other threads:[~1999-06-17  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-17  0:00 Task management Dale Stanbrough
1999-06-17  0:00 ` Decker, Christian R
1999-06-17  0:00   ` Gerald Kasner
1999-06-17  0:00 ` Larry Kilgallen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-12-28 11:27 Task Management The One Who Rages
2005-12-28 12:28 ` Dmitry A. Kazakov
2005-12-28 12:55   ` Martin Dowie
2005-12-28 12:33 ` Stephen Leake
2005-12-28 13:22 ` The One Who Rages
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox