Date: September 1, 2024

Topic: Process Lifecycle States

Recall

Lifecycle States include:

In the Running state, it is possible to go back to:

Notes

Process Lifecycle States

Process lifecycle states. Possible states are shown in the nodes

Process lifecycle states. Possible states are shown in the nodes

Starting a Process

Ready and Running

Running State Branches

Interrupt:

I/O or Event Wait:

Termination:

<aside> 💡

CPU is able to execute processes in either a running or ready state

</aside>


Processes can spawn child processes

Child processes can be created either by:

Process Creation

All processes come from a single root

All processes come from a single root

In OS, a process can create child processes

Mechanisms for Process Creation

Fork - child continues from same point

Exec - child starts from first instruction

Parent Processes

For UNIX-based OS, the parent of all processes is init

For Android OS, the parent of all processes is zygote


<aside> 📌 SUMMARY: Processes can have the following lifecycle states: new; ready, running, waiting; terminated. Processes are created from another processes either through fork or exec

</aside>


Date: September 1, 2024

Topic: Process Scheduling





<aside> 📌 SUMMARY: The CPU scheduler determines which process from a ready queue should run next. This operation should be minimized so that the actual process running time $T_p$ is maximized. Process scheduling is done in a few ways; I/O request, expiring time slice, forking a child and waiting for an interrupt.

</aside>