Check number of logical cpu cores

Shows the number of logical CPU cores in the current machine using std.Thread.getCpuCount.

const std = @import("std"); const print = std.debug.print; pub fn main() !void { print("Number of logical cores is {}\n", .{try std.Thread.getCpuCount()}); }
Last change: 2024-07-04, commit: e577a80