title: Number of Processors in Clojure? Java interop
body: <p>I'd like to use the Java method:  <code>Runtime.getRuntime().availableProcessors()</code> and save the result in a integer variable.</p>
  
  <p>So in Clojure I did this:</p>
  
  <pre><code>(def n-cpu  ((.availableProcessors (Runtime/getRuntime)) ))
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>(def n-cpu (Integer/parseInt ((.availableProcessors (Runtime/getRuntime)) )))
  </code></pre>
  
  <p>but none work.</p>
  
  <p>Any suggestions?</p>