1. Runtime.getRuntime().availableProcessors();