Tag Info

New answers tagged

4

If the child process contains all the attributes of the parent process (which is the original process), then what is the need of this child process? The original process also could have been loaded to the memory. This question is very illustratively answered by taking a look at the earliest Unix implementations which had to work under severe memory ...


0

I don't think the -f is actually causing your problem. I don't see anything wrong in your command, given the right circumstances, your command would work just fine. However if there is any stateful middlebox on the path between ssh client and ssh server, then if that middlebox loses state your ssh connection will die or stall. That means you need to take ...


15

So when a command is fired from a shell, fork() inherits a child process of it and exec() loads the child process to the memory and executes. Not quite. fork() clones the current process, creating an identical child. exec() loads a new program into the current process, replacing the existing one. My qs is: If the child process contains ...


2

To make this as easy to understand as possible I will use an analogy. Let's bake a pie! We grab the recipe book, and start reading and settle on a strawberry rhubarb pie (my favorite), with a handmade crust. Almost everything we need is in the kitchen except for the eggs and the fruit, but since we live on a farm and the fruit is in season, this is not a ...


5

For some programs, the child process does one thing (read from a serial port, write to the terminal), and the parent process goes on to do something else (read from terminal, write to serial port). Another classic example is the child process does a checkpoint of whatever long running calculation is taking place. Mostly, the child process does some setup, ...



Top 50 recent answers are included