public GMOperation limitThreads ( final int threadsPerProcess ) { final List < String > args = getCmdArgs ( ) ; args . add ( "-limit" ) ; args . add ( "threads" ) ; args . add ( Integer . toString ( threadsPerProcess ) ) ; return this ; }
Limits the number of threads used by the GraphicsMagick process during execution . Note that no validation is made so ensure that the value is a non - positive integer presumably less than the maximum CPU cores on the host .