Top "Fork" questions

The `fork()` function is the Unix/Linux/POSIX way of creating a new process by duplicating the calling process.

Can the order of execution of fork() be determined?

I'm working on an exercise on the textbook "Operating System Concepts 7th Edition", and I'm a bit confused about how …

c fork scheduling
Returning data from forked processes

If I do Process.fork do x end how can I know what x returned (e.g. true/fase/string) ? (…

ruby process fork
Multithreaded fork

Can fork() function be used to replicate a multithreaded process. And if so, will all threads be exactly the same …

linux multithreading fork
How can I use foreach and fork together to do something in parallel?

This question is not UVM specific but the example that I am working on is UVM related. I have an …

foreach fork system-verilog uvm
Forking a gem for a Rails project

I've found myself twice in this situation: I install a gem on my system and start using it from my …

ruby-on-rails ruby fork gem
Linux, waitpid, WNOHANG and zombies

I need to be able to: fork a process and make it execvp (I did that) check if the child …

c++ c fork wait waitpid
What happens to other threads when one thread forks()?

In C++ using pthreads, what happens to your other threads if one of your threads calls fork? It appears that …

c++ multithreading pthreads fork
How do you use dup2 and fork together?

I'm taking an operating systems course and I'm having a hard time how input is redirected with dup2 when you …

unix exec fork dup2
How to use dup2/close correctly to connect these three processes?

I'm trying to properly connect three processes in order to allow inter-process communication between them. I have one process, scanner, …

c fork pipe dup2
What Happens When I Call fork() in Unix?

I've tried to look this up, but I'm struggling a bit to understand the relation between the Parent Process and …

c unix fork process