the state of a process is defined by