This week we learned about processes, and how an OS allocates resources for every process that runs. We also learned about forking processes, and how a CPU can execute multiple processes asynchronously. To see this in practice, we used a simple script that created a parent and child process using the fork method. Each process printed out its name as it iterated through a for loop.
After redirecting the output to a txt file, it was clear that there were two processes executed from a single script. All of this still is a little foreign to me, but I feel like it’s starting to make sense. One thing that I’ve taken away already is a new appreciation for everything that languages like python make all of these tasks!