Saket Soni
back to home
Here is an implementation of a reader writer process using shared memeory.
- remsem.cpp - removes shared memory.
- cresem.cpp - creates shared memory.
- reader.cpp - a reader process. You can launch multiple of them, but they will read only if there is no writer.
- writer.cpp - a writer process. You can launch multiple of them, but only one will write at a time. Also if a writer is executing (writing) it will block all other readers.
back to home