Is it possible to get computer characteristics? For example, I want to get processor frequency, RAM and free hdd space.
Asked
Active
Viewed 75 times
0
-
5Have you done any research before posting your question? – Luiggi Mendoza Mar 14 '14 at 16:21
-
@LuiggiMendoza sorry, it's hard possible to get necessary information in search with my bad english, i don't know what i need to search sometimes – Denis Mar 14 '14 at 16:26
-
Sure, I have gone through that path some years ago. Still, I just copied *get computer characteristics* from your question title and added *java*, then did a search on google and this was in my first results: http://stackoverflow.com/q/25552/1065197 – Luiggi Mendoza Mar 14 '14 at 16:27
-
For what purpose do you need this information? – Thorbjørn Ravn Andersen Mar 14 '14 at 16:28
-
@ThorbjørnRavnAndersen for approximate computation of execution of the program – Denis Mar 14 '14 at 16:29
-
@LuiggiMendoza thanks for it, I will consider it next time! – Denis Mar 14 '14 at 16:30
-
1You can ask about the number of cores which gives an indication of the number of threads you can have at once, but for the rest you should instead measure progress through the workload and then estimate that with the current speed the program will be done in X minutes. Also allow the user to override the number of threads - there might be factors you did not think of. – Thorbjørn Ravn Andersen Mar 14 '14 at 16:33