public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "folkert at vanheusden dot com" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/58669] does not detect all cpu cores/threads Date: Wed, 09 Oct 2013 16:36:00 -0000 [thread overview] Message-ID: <bug-58669-8172-G4MsS0tDYK@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-58669-8172@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58669 --- Comment #3 from Folkert van Heusden <folkert at vanheusden dot com> --- Did some googling and with appropriate #ifdefs it should be at least on linux possible to retrieve this value: sysconf(_SC_NPROCESSORS_ONLN); If that function can't figure it out, it will return '1' which is somewhat sensible. On http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-machine I found a whole list of implementations for windows, *bsd, macos, aix, well I think all relevant platforms. Also http://stackoverflow.com/questions/4586405/get-number-of-cpus-in-linux-using-c gives some ideas. If there's any further help I can do; let me know.
next prev parent reply other threads:[~2013-10-09 16:36 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-10-09 15:54 [Bug java/58669] New: " folkert at vanheusden dot com 2013-10-09 16:27 ` [Bug java/58669] " gnu_andrew at member dot fsf.org 2013-10-09 16:35 ` gnu_andrew at member dot fsf.org 2013-10-09 16:36 ` folkert at vanheusden dot com [this message] 2013-10-09 18:36 ` gnu_andrew at member dot fsf.org 2013-10-09 18:36 ` gnu_andrew at member dot fsf.org 2013-10-18 1:17 ` gnu_andrew at member dot fsf.org
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=bug-58669-8172-G4MsS0tDYK@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@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: linkBe 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).