comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: How to set stack size of main task?
Date: 1996/10/02
Date: 1996-10-02T00:00:00+00:00	[thread overview]
Message-ID: <1996Oct2.075609.1@eisner> (raw)
In-Reply-To: 3251CF5F.50B@ro.com


In article <3251CF5F.50B@ro.com>, Stephen & Tammy House <house@ro.com> writes:
> The main task stack size in Ada83 is determined by the RTS and or the
> OS.  Under unix, the shell has stack size limits set (see the limit
> command).  I'm not sure, but I doubt that Ada95 has done anything about
> this.  Tasks are set up by the RTS, but there is no hook to the main
> thread since it is started by the OS's loader.

On VMS, the main stack will "expand" when it runs out, although as
with any well-behaved operating system there are limits on how much
virtual memory can be spent in this endeavor (preventing an individual
user from filling the pagefile, for example).

I would hope that future Ada implementations running in memory-rich
environments (timesharing machines, not rocket ships) would support
an option to make other task stacks relatively unlimited as well.
64-bit addressing allows an individual OS process to have task
stack sizes of about 4 billion bytes, presuming the number of
tasks for a given program is limited to 4 billion as well :-).

Actually, my current need is less than 100 tasks, but I certainly
would rather get out of the business of specifying task sizes.

Larry Kilgallen




  reply	other threads:[~1996-10-02  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-27  0:00 How to set stack size of main task? Volker.Lendecke
1996-10-01  0:00 ` Stephen & Tammy House
1996-10-02  0:00   ` Larry Kilgallen [this message]
1996-10-05  0:00     ` Stanley Allen
1996-10-07  0:00       ` Larry Kilgallen
1996-10-07  0:00       ` Larry Kilgallen
1996-10-02  0:00   ` David C. Hoos, Sr.
replies disabled

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