I was studying for an exam when I stumbled across this true or false statement:
In a system of 7 states diagram, a process could switch from ready state to exit state directly.
The answer to this question was "True".
After some digging into books, I found this:
Ready -> Exit: For clarity, this transition is not shown on the state diagram. In some systems, a parent may terminate a child process at any time. Also, if a parent terminates, all child processes associated with that parent may be terminated.
That is an excerpt from Stallings 8th edition, page 119.
I don't understand how a process that never happens to execute is able to terminate. Could someone explain to me how is this done?