SCHED_GETCPU(2)

NAME
sched_getcpu - get the CPU on which the calling thread is running

LIBRARY
libc

SYNOPSIS
#include <sys/types.h>
#include <sys/sched.h>
int
sched_getcpu(void);

DESCRIPTION
The sched_getcpu() returns the CPU on which the calling thread is running.

SEE ALSO
usched_set(2)

HISTORY
The sched_getcpu() function first appeared in DragonFly 4.7.