* Reading thread stack limits under DEC OSF/1 3.0
@ 1995-06-27 4:00 piumarta
1995-06-27 4:00 ` Isaac Younger
0 siblings, 1 reply; 2+ messages in thread
From: piumarta @ 1995-06-27 4:00 UTC (permalink / raw)
I'm investigating the possibility of modifying a garbage collector to
work with DEC's pthreads under OSF/1. For this I need to be able to
determine the stack limits for each thread, but I can't find any
information on how to do this.
This information must be easily accessible somewhere, since the
cma_debug() routine quite happily prints the stack limits for each
thread. There appears to be nothing in the on or off-line
documentation, nor anything obvious in the C header files under
/usr/include or /usr/sys/include, about this.
Any help with this would be greatly appreciated.
Thanks in advance,
Ian
------------------------------- projet SOR -------------------------------
Ian Piumarta, INRIA Rocquencourt, Internet: Ian.Piumarta@inria.fr
BP105, 78153 Le Chesnay Cedex, FRANCE Voice: +33 1 39 63 52 87
----------------------- Systemes d'Objets Repartis -----------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Reading thread stack limits under DEC OSF/1 3.0
1995-06-27 4:00 Reading thread stack limits under DEC OSF/1 3.0 piumarta
@ 1995-06-27 4:00 ` Isaac Younger
0 siblings, 0 replies; 2+ messages in thread
From: Isaac Younger @ 1995-06-27 4:00 UTC (permalink / raw)
In article <3sovm8$iph@news-rocq.inria.fr>, <piumarta@epaf.inria.fr> wrote:
>I'm investigating the possibility of modifying a garbage collector to
>work with DEC's pthreads under OSF/1. For this I need to be able to
>determine the stack limits for each thread, but I can't find any
>information on how to do this.
>
To get the stack size of a thread call the pthread_attr_getstacksize
routine. I have used this routine on VMS and it works fine. Never tried
it on OSF/1 (although the pthread interface is supposed to be compatible).
This routine will give you the stack size of the thread when it was created,
however, it does not tell you the current size of the stack.
--
Isaac Younger iyounger@nyx10.cs.du.edu
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-06-27 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-27 4:00 Reading thread stack limits under DEC OSF/1 3.0 piumarta
1995-06-27 4:00 ` Isaac Younger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox