You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
d4c4993c7f | 5 years ago | |
---|---|---|
Makefile | 5 years ago | |
README.md | 5 years ago | |
main.c | 5 years ago | |
noerror.c | 5 years ago |
README.md
shared memory
Simple example of inter process communication with shm_open().
The main process forks itself and then waits for the child to finish. The child writes into a shared memory and exits. After that the main process prints what the child wrote into the shared memory.
Note
The file noerror.c does the same as main.c, but no error handling.
compile
make
run
./main