As an exercise i'am implemmenting a simple shell and now i'am trying to implemment foregorund and background.
All i know about this at the moment is that if there an & after a command it runs on background.
Is the idea just to make the parent process wait for child completion if we're in foreground mode? What if the process is to be run in background mode? Do i have to force the parent to run first?