import multiprocessing
      
      cpu_count = multiprocessing.cpu_count()

      Python language logo
      Get number of CPU

      Python public recipes

      This code returns the number of CPUs on the system.

      Shortcut: multiprocessing.cpu

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.