NAME
          current_processor, num_of_procs - cthread exported variables

     LIBRARY
          C Threads Library (libcthreads.a)

     SYNOPSIS
          #include <cthread.h>

          extern int current_processor;

          extern int *num_of_procs;


     DESCRIPTION
          These variables are exported from the cthreads library.

          num_of_procs points to an integer whose value is the number
          of logical processors (processes on the SPARC) that cthreads
          is using for the user application.  This variable is ini-
          tialized by cthread_init() and can be used by the applica-
          tion to find out how many processors were specified if the
          value for cthread_init() was overridden on the command line
          by a -num_procs" parameter to cthread_parse_args().  Note
          that monitoring may require an additional processor beyond
          that requested by "-num_procs" or reported by *num_of_procs.

          current_processor is a simple integer which identifies the
          logical processor upon which the evaluating thread is run-
          ning.  Processor IDs start at 0 and go up to *num_of_procs-
          1.  The processor ID is a logical ID and doesn't correspond
          to any physical identification of the processor or process
          which is executing.

     BUGS
          There's no good reason for num_of_procs to be a pointer
          instead of a simple integer.  But it always has been, so it
          remains.

     SEE ALSO
          cthread_intro(3), cthread_init(3), cthread_parse_args(3)

     AUTHOR
          Cthreads was written and maintained by many people.
          This man page written by Greg Eisenhauer.