[3] 🛠 Operating system : Process Bonus ↘️ Process creation steps 🐾

1️⃣ fork() → parent clones itself, creating a new process ( a child )

2️⃣ exec() → child replaces its code with a new program

3️⃣ The new process enters the life cycle :
<<New → Running → Waiting → Terminated>>

🧭 Try commands to explore processes...
😅 Never kill PID 0 or PID 1 !

This is how Linux turns a single process into many ! ☕️☕️☕️

🔭 Next : [4] memory

#linux #oS #process #kernel #lifecycle