Home
fork() creates a new process by duplicating the calling process. The new process is referred to as the child process. The calling process is referred to as the parent process.
Welcome to forks() for me!. A simple site where I publish my work, my rants, and my thougths.
What should you expect from this site:
- rants about the current state of technology
- thoughts on the ongoing projects I work on
- sarcasm
- boring work related stuff (might be interesting for you though)
- basically, anything I need to remember which, otherwise, I’ll surely forget
Why is it called like this, why forks for me? That’s a good question, I’m glad you asked.
Many, many years ago, when multithreading on Linux was a PITA, my boss tasked me with a simple job. To write a multithreaded Perl program we needed for a newlly developed project. The gory details are unnecessary for this story. A couple of days later, this happened:
Him: Is that Perl program ready yet mate?
Me: Man, I’ve tried with threads. Works fine on Windows but not so much on Linux. I rewrote the whole damn thing using fork(). Are you OK with this?
Him: forks for me… ¯\_(ツ)_/¯