comp.lang.ada
 help / color / mirror / Atom feed
From: andrews@njsurfnet.net
Subject: task control block and stack size question...
Date: 1997/07/07
Date: 1997-07-07T00:00:00+00:00	[thread overview]
Message-ID: <868300816.15987@dejanews.com> (raw)


I need some help!

We've inherited an Ada project that uses tasking and I have a question on
where they could have come up with some numbers they used (none of the
original authors are with the company anymore). The main task type uses a
representation clause as follows:

   task type SERVER_TASK_TYPE is
      entry Initiate ( Socket : CASS_Sockets.Socket_Descriptor );
      entry Interrupt;
   end SERVER_TASK_TYPE;
   for SERVER_TASK_TYPE'storage_size use 3600 + ( 64 * 1024);
       --                    Task_Control_Block + ( Stack_Size )

Does anybody have any idea about how one comes up with the numbers for the
task control block and the stack size? The code is running on a Sun SPARC
20 (Solaris 2.5.1) built by the Sun SPARCWorks Ada 2.1.1 compiler (VADS
single threaded RTS). We have a server sending and receiving messages of a
perticular size, and when we jack up that size, the server seems to hang.
After jacking the 64 * 1024 to 256 * 1024, it seems to work for a few API
calls, but then hangs. I need more info about where these numbers came
from! Any ideas?

Thanks ALL!

Pete Andrews

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet




                 reply	other threads:[~1997-07-07  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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