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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7caa1b2a6d36aa0e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-29 13:30:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc02.POSTED!not-for-mail Message-ID: <3F26D939.3030003@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Task storage size References: <3f266925$1@baen1673807.greenlnk.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 66.31.71.243 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc02 1059510604 66.31.71.243 (Tue, 29 Jul 2003 20:30:04 GMT) NNTP-Posting-Date: Tue, 29 Jul 2003 20:30:04 GMT Organization: Comcast Online Date: Tue, 29 Jul 2003 20:30:05 GMT Xref: archiver1.google.com comp.lang.ada:40965 Date: 2003-07-29T20:30:05+00:00 List-Id: 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