public synchronized int getCoreCount(final int chipId) {
		int ret = 0;
		for (CPU cpu : idleCPUs) {
			if (cpu.getCPUChipId() == chipId) {
				ret++;
			}
		}

		for (CPU cpu : usedCPUs) {
			if (cpu.getCPUChipId() == chipId) {
				ret++;
			}
		}

		return ret;
	}