From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,66c1135683e35361 X-Google-Attributes: gidfee84,public From: iyounger@nyx10.cs.du.edu (Isaac Younger) Subject: Re: Reading thread stack limits under DEC OSF/1 3.0 Date: 1995/06/27 Message-ID: <3sppvt$gdr@nyx10.cs.du.edu>#1/1 X-Deja-AN: 105131023 references: <3sovm8$iph@news-rocq.inria.fr> organization: University of Denver, Dept. of Math & Comp. Sci. keywords: pthreads, osf/1 newsgroups: comp.unix.osf.osf1 In article <3sovm8$iph@news-rocq.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