![]() |
Re: How to Create processes in Unix C
Thanks a ton for accepting...
|
Re: How to Create processes in Unix C
Another nice thread.
+rated. |
Re: How to Create processes in Unix C
Quote:
And if you really wanna rate me.. Please press the thanks button on the bottom of where the article ends.. That would really increase my rating and thus , make me more motivated to post such articles.. Thanks |
Re: How to Create processes in Unix C
UNIX implements through the fork() and exec() system calls an elegant two-step mechanism for process creation and execution. fork() is used to create the image of a process using the one of an existing one, and exec is used to execute a program by overwriting that image with the program's one. This separation allows to perform some interesting housekeeping actions in between, as we'll see in the following lectures.
A call to fork() of the form: #include <sys/types.h> pid_t childpid; ... childpid = fork(); /* child's pid in the parent, 0 in the child */ |
Re: How to Create processes in Unix C
Extremely useful post, should do a world of good to most of the users!!..
|
Re: How to Create processes in Unix C
Quote:
More articles coming up.. |
Re: How to Create processes in Unix C
agree with you according to the statement and nice one
|
Re: How to Create processes in Unix C
Code: cpp
my dear this code is wrong.. |
Re: How to Create processes in Unix C
Quote:
The child process again do not step through the whole program.If it does then you have infinite fork() calls. The child process starts its execution after the fork() statement like Code: cpp
feel free to ask any doubts... |
| All times are GMT +5.5. The time now is 05:25. |