What is meant by a hardware thread. Is it always double the number of processor cores available? How to determine the number of hardware threads in an Intel Core2 Duo processor? Can it be determined through Java code?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You tell us. It’s not really an established term.
Ah, now it seems like you’re talking about hyperthreading where partial redundancies within a CPU core are used to “fake” an additional core.
You could try to find something in the system properties, but it’s not going to be standard (i.e. depends on the JVM and OS).
Personally, I’d just use a sensible default (4 or 8 threads – having a few too many is perferable to not using available cores) and make it configurable.