I wrote a code to under stand the work of process by call system call with fork() function
Here is this code
Here is the out-put:
without wait() function it should execute first parent process completely then it execute child process. But here the child process execute first completely after that parent process.
If I run the same code on Ubuntu it's output is change. why this thing is happen in kali Linux.
Anyone guide me
Here is this code
Here is the out-put:
without wait() function it should execute first parent process completely then it execute child process. But here the child process execute first completely after that parent process.
If I run the same code on Ubuntu it's output is change. why this thing is happen in kali Linux.
Anyone guide me