thr_minstack(3thread)


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(3thread).

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(3thread), thr_create(3thread)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004