python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
python fork and pipe for sending and receiving messages
My application need two (python) methods to send and receive messages(arrays). I am trying to achieve this by using a pipe. I have forked two processes. I observe that if (process == 0), I can either ...
sindhuja
Votes: 0
Answers: 0
What are the ways to create a new process in C?
I wonder are there any other ways to create a new process in C.
I know about fork which creates a child process.
Also, with exec I can replace the current executing program, but yet it does not create...
vanderwaal
Votes: 0
Answers: 1
C problem Linux process, child processes using kill() and a handler (ERROR)
Enter n, an integer, from the keyboard; the process creates n child processes, then every one of them sends a signal to the parent process using kill(), counting with the handler function, h.
Why does...
gibi
Votes: 0
Answers: 1
What is fork() doing here?
So I am trying to figure out what this code is doing:
int k = 5;
if(fork() == fork()) ++k; else --k;
printf("%d\n", k);
The thing that bothers me is that I receive different outputs:
4
4
...
Jorj2014
Votes: 0
Answers: 2