title: Thread management in Java
body: <p>I need a solution that allows to set a capped number of thread running on the system and that optimizes memory and CPU usage (for example, the size of memory will not grow over the known total thread stack memory), etc.</p>
  
  <p>Is there a native Java technology for that or a third party library?</p>
  
  <p>Thanks</p>