Get number of core/thread

Hey there,
I think I remember that it was possible to get the number of core/thread of the machine via the “Extract system properties” node.
I can’t find that property now, did I dream it or is there indeed some way ? :stuck_out_tongue:

Hi @l.thomas,
if you need to get the number of cores available to KNIME, you can use either a Java snippet (simple) node or a Java edit variable (simple) node and configure it with the following code (also configure return type as integer):

return Runtime.getRuntime().availableProcessors();

You can read the java docs for more information.



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.