title: Exhaust memory usage with malloc and sleep in C
body: <p>So I want to exhaust the Windows Memory Usage with a malloc and sleep in C progresively.</p>
  
  <p>I wrote this code, but it doesn't seem to exhaust all the memory usage, I don't know what more to do.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;unistd.h&gt;
  
  int main(int argc, char** argv) {
      while (1) {
          malloc(1024 * 1024);
          sleep(1);
      }
      return 0;
  }
  </code></pre>