Synchronising N sibling processes after fork
问题 I'm having some hard time with synchronising N child process waiting each one of them to arrive at some specific point. I've tried semaphores and signals but I can't get my head around it. #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sys/types.h> #include <sys/sem.h> #include <sys/ipc.h> #include <fcntl.h> #include <semaphore.h> #include <sys/wait.h> #include <sys/shm.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys