Next: manage_tcluster, Previous: spawn, Up: Syscalls [Contents]
int gettid(void);
This syscall returns the current thread id. It never fails.