title: Python - MultiProcessing running only 4 parallel process in 1 CPU core
body: <pre><code>N = multiprocessing.cpu_count()
  with multiprocessing.Pool(processes = N) as p:
      for result in user_detail:
          arg1 = str(result).replace(&quot;[&quot;, &quot;\&quot;[&quot;)
         arg = arg1.replace(&quot;]&quot;, &quot;]\&quot;&quot;)
  
          
  
          #For Linux
          cmd = 'python3 test.py '
          cmd1 = cmd + arg
          
          os.system(cmd + arg + ' &amp;')
  </code></pre>
  <p>I have around 10 user details and this for loop will be calling my test.py file parallely. But only 4 parallel jobs are running at a time. How can I make all available 10 users to run parallelly.
  In Future user_detail count may increase and I want all to run parallelly..</p>
  <p>currently my cpu_count is 1. Testing it with AWS free tier EC2 instance which comes with 1GB RAM.</p>
  <p>Someone please help me how to achieve this parallel jobs run using python..
  Thanks in Advance</p>