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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7d2c8b4487ef2145 X-Google-Attributes: gid103376,public From: "wiljan" Subject: Re: Ada versus Java - Tasking Date: 1997/01/16 Message-ID: <01bc03f8$e0a2ce30$22208b82@wd>#1/1 X-Deja-AN: 210271578 references: <01bc03ee$594dc520$829d6482@joy.ericsson.se> organization: Philips Electronics N.V. newsgroups: comp.lang.ada Date: 1997-01-16T00:00:00+00:00 List-Id: Jonas Nygren wrote in article <01bc03ee$594dc520$829d6482@joy.ericsson.se>... > I have tried to check over and over and I can not find > any errors in my code. Furthermore, with Java I managed > to start 400 producer-consumer pairs but the Ada version > stopped working already when 63 pairs were started > (62 pairs would run). Address space is limited on NT that is way only 125 tasks. By default gnat 304 links with -stack 0x1000000,0x10000 This meants that the stack reserve size is 0x1000000. Since the user address space size is only 0x80000000 maximum 128 stacks for tasks kan be reserved. Thats way the limit of about 125 tasks. If you change this into a smaller stack reserve size then you will be able to create many tasks in your ada program. The -stack option can be found in the file specs. Wiljan