detectPhysicalCores

Detects the number of physical CPU cores (not hyper-threaded logical processors). Falls back to Runtime.availableProcessors if detection fails.

Return

The number of physical CPU cores.

Parameters

log

Log function for diagnostic output.