From: "Robert I. Eachus" <rieachus@attbi.com>
Subject: Re: Task storage size
Date: Tue, 29 Jul 2003 20:30:05 GMT
Date: 2003-07-29T20:30:05+00:00 [thread overview]
Message-ID: <3F26D939.3030003@attbi.com> (raw)
In-Reply-To: 3f266925$1@baen1673807.greenlnk.net
Martin Dowie wrote:
> How can I create many instances of a task type with different Storage_Size
> values?
>
> I can set the priority of each by parameterizing the task type, e.g.
> task type A_Task (Priority : System.Priority := System.Default_Priority);
> but I can't see any way of having different Storage_Size's...
You can't.
But what are you trying to do? Usually if you have lots of tasks and
need to manage their storage you put the larger objects on the heap. I'd
be interested in seeing what you are doing, if you do need different
stack sizes for some reason.
Some implementations may have a local heap for each task, but if your
implementation does, then you can create storage pools that are program
wide. However, I usually find that when I am creating large objects in
tasks, they have to be on the system heap, since the type outlasts the task.
--
"As far as I'm concerned, war always means failure." -- Jacques Chirac,
President of France
"As far as France is concerned, you're right." -- Rush Limbaugh
next prev parent reply other threads:[~2003-07-29 20:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-29 12:33 Task storage size Martin Dowie
2003-07-29 20:30 ` Robert I. Eachus [this message]
2003-07-30 7:36 ` Martin Dowie
2003-07-30 19:15 ` Randy Brukardt
2003-07-31 7:35 ` Martin Dowie
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox