Sun Java System Web Server 6.1 SP6 NSAPI Programmer's Guide


The systhread_start function creates a thread with the given priority, allocates a stack of a specified number of bytes, and calls a specified function with a specified argument.


SYS_THREAD systhread_start(int prio, int stksz,    void (*fn)(void *), void *arg);


A new SYS_THREAD pointer if the call succeeded, or the constant SYS_THREAD_ERROR if the call did not succeed.


int prio is the priority of the thread. Priorities are system-dependent.

int stksz is the stack size in bytes. If stksz is zero (0), the function allocates a default size.

void (*fn)(void *) is the function to call.

void *arg is the argument for the fn function.

See Also

systhread_current, systhread_getdata, systhread_newkey, systhread_setdata, systhread_sleep, systhread_timerset