public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Cong <vo.chi.cong@is.titech.ac.jp>
To: gcc-help@gcc.gnu.org
Subject: how to get the number of CPUs?
Date: Thu, 04 Jul 2002 04:45:00 -0000	[thread overview]
Message-ID: <20020704.204551.21926862.vo.chi.cong@is.titech.ac.jp> (raw)
In-Reply-To: <1025766825.11142.ezmlm@gcc.gnu.org>

I'm writing a multithread program to exploit power of CPUs on my Linux
machines. I'm intending to run it on several machines with other
number of CPUs on each of them. So I want to get the number of CPUs
dynamically at run time.

I've googled and learned about sysconf and getconf, but still dont
know will they help me and how to use them. Please help me!

Thank in advance.

Cong

       reply	other threads:[~2002-07-04 11:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1025766825.11142.ezmlm@gcc.gnu.org>
2002-07-04  4:45 ` Cong [this message]
2002-07-04  5:30   ` Bharathi S
     [not found] <616BE6A276E3714788D2AC35C40CD18D6C01F7@whale.softwire.co.uk>
2002-07-04  5:52 ` Rupert Wood
2002-07-06 21:24   ` Cong
2002-07-13  8:00     ` Nix
2002-07-04 13:11 Dockeen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020704.204551.21926862.vo.chi.cong@is.titech.ac.jp \
    --to=vo.chi.cong@is.titech.ac.jp \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).