DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

thr_minstack(THREAD)


thr_minstack -- return the minimum stack size for a thread

Synopsis

   cc [options] -Kthread file
   

#include <thread.h>

size_t thr_minstack(void);

Description

thr_minstack returns the implementation-defined value for the minimum stack size for a thread required by thr_create(THREAD).

Usage

The value returned by thr_minstack can be used as the stack_size argument to thr_create when the new thread needs only a minimal stack. Threads that will call any functions, or that need much space for local variables, must use a larger stack.

Return values

thr_minstack returns the minimum stack size for a thread.

Errors

None

References

Intro(THREAD), thr_create(THREAD)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005