private void runNextProcess() {

		for (int i = running_process + 1; i < MAX_NUM_PROCESS; i++) {

			if (process_table[i] != null
					&& process_table[i].getStatus() == ProcessState.READY) {
				process_table[i].setStatus(ProcessState.RUNNING);
				running_process = i;
				return;
			}
		}

		for (int i = 0; i < MAX_NUM_PROCESS; i++) {

			if (process_table[i] != null
					&& process_table[i].getStatus() == ProcessState.READY) {
				process_table[i].setStatus(ProcessState.RUNNING);
				running_process = i;
				return;
			}
		}

		running_process = -1;

	}