title: restrict CPU usage of java application to specific amount
body: <p>as title is descriptive i want to restrict CPU usage of a java application that runs in windows to specific amount (namely 2 GH)</p>
  
  <p>this app could be a ".jar" file or an app which runs by IntelliJ IDEA or Eclipse</p>