public void setMaxCpu(int cpu) {
		this.maxcpu = cpu;
		System.setProperty("cpu.core.limit", Integer.toString(cpu));

	}
Sets the maximum number of cpu cores to use during headless processing. 

@param cpu The maximum number of cpu cores to use during headless processing.
    Setting it to 0 or a negative integer is equivalent to setting it to 1.
Ghidra/Features/Base/src/main/java/ghidra/app/util/headless/HeadlessOptions.java