Code: Pascal [Select][+][-]cThreadCount := {$IFDEF UNIX}GetSystemThreadCount{$ELSE}GetCPUCount{$ENDIF};