gettid(2) — CX/UX
NAME
gettid − get thread ID
SYNOPSIS
#include <sys/types.h>
tid_t gettid ()
DESCRIPTION
gettid returns the thread ID of the calling thread, guaranteed to be non-zero. Beware that thread IDs are not the same as process IDs.
NOTE
CX/UX does not yet support a lightweight process abstraction. Currently, each process contains exactly one thread of execution. The question of how to coordinate a collection of processes sharing portions of their address spaces with shared memory segments is very similar to the question of how to coordinate a collection of threads sharing an entire address space. Using thread IDs, CX/UX provides a set of real-time synchronization primitives applicable to the former environment today and the latter environment in the future.
SEE ALSO
CX/UX Programmer’s Guide.
resched_cntl(2), spin_trylock(2), server_block(2), client_block(2).
CX/UX Programmer’s Reference Manual