struct kinfo kinfo; int nr_tasks, nr_procs; getsysinfo(PM_PROC_NR, SI_KINFO, &kinfo); nr_procs = kinfo.nr_procs; printf("Number of processes: %d", nr_procs);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)