[lkml]   [2002]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: system call for finding the number of cpus??
On Mon, Apr 08, 2002 at 05:25:08PM -0400, Robert Love wrote:
> Linux does not implement such a syscall. Note
> cat /proc/cpuinfo | grep processor | wc -l
> works and is simple; you do not have to do it via script - execute it in
> your C program, save the one-line output, and atoi() it.

I guess there is at least one architecture on which it breaks..
See for details.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:22    [W:0.249 / U:4.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site