thr_minstack(3thread) thr_minstack(3thread)
NAME
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).
Return Values
thr_minstack returns the minimum stack size for a thread.
Errors
None
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.
REFERENCES
thr_create(3thread), thread(3thread)
Copyright 1994 Novell, Inc. Page 1