Hi ,
what is the behaviour of below pseudo code.
pipe(fd)
if(fork()){
read(fd[0]);
} else {
write(fd[1]);
write(fd[1]);
}
I understand how system calls work , but could not understand the behaviour when used differently.
secondly if a process uses while(1); in side its block, will the entire program struck there or it struck there as long as it is scheduled.
Thanks,