I don't care about a specific count. And in this case i think i have 8+1 process.
Type: Posts; User: Empair
I don't care about a specific count. And in this case i think i have 8+1 process.
Hi, I need to help with semafor implementation understanding. I meant I understood the logic of it based on available sources, but during implementation I am not able to get the desire outcome.
...
strange
my be i upload one of my attempts
sorry
try this
#include <stdio.h>
#include <stdlib.h>
ok I expressed myself wrong
i am using prinf in handler only for debug ...
So my questing is: How a get i PID of process witch calling a Handler?
#include <stdio.h>#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/wait.h>
int const pipeCount = 1;
My mistake ... i found trouble ... in placeing return to wrong process ...
this is correct ...
#include <stdio.h>#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include...
Hi
i need to create 5 children ... and each must have open one end of five pipes ...
so i create a this ...
#include <stdio.h>#include <stdlib.h>
#include <unistd.h>
#include...
Hi
i need explanation ... how it is possible this:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
OK, I'm sorry I don't know the local customs ...
Thank you for the explanation and advice.
So .... with your solotion a create a simpli code for testing Pipes ...
Transfer data between two programs ...
It is Works!
But ... with void functions instead of a function with a...
@Salem: Works ... thx
Hi, i am stack for hours on basic staff so I decided to ask for help.
I need to fill variable buffer2 from funkcion GetBackString ... and buffer2 it need to be a array.
char GetBackString(){...