simulate a three-state process model (ready, running and blocked)