A simple offline server which searches keywords in a file. This C program is written to demonstrate usage of pthreads, shared memory and semaphores under the umbrella of a school project for CS342 Operating Systems course at Bilkent University. Detailed problem description can be found in description.pdf
.
- A UNIX based OS which supports pthreads and shared memory.
- GCC (GNU C Compiler)
- make
Build the project:
$ make
Run the server:
$ ./server <shared_mem_name> <file_name> <semaphore_name>
Run the client:
$ ./test_client <shared_mem_name> <keyword> <semaphore_name>