title: Python the CPU consumption not down when sleep()
body: <p>My code has two jobs, the first consumes CPU 0.3%, the second consumes CPU 80%. The two jobs are repeatly worked like this:</p>
  
  <pre><code>while True:
    job1()
    job2()
  </code></pre>
  
  <p>I find after the first loop, the CPU consumption not down even if it worked in job1(), the consumption is always 80%.</p>
  
  <p>So I modified the code like so:</p>
  
  <pre><code>n = 0
  while True:
    n += 1
    if n &gt; 1:
      print 'to sleep'
      time.sleep(100000000)
      continue
    job1()
    job2()
  </code></pre>
  
  <p>I find the CPU consumption is 80% when it in <code>sleep()</code>. Why did it happen?</p>