comp.lang.ada
 help / color / mirror / Atom feed
* task control block and stack size question...
@ 1997-07-07  0:00 andrews
  0 siblings, 0 replies; only message in thread
From: andrews @ 1997-07-07  0:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-07-07  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-07  0:00 task control block and stack size question andrews

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