Skip to content

a simple offline server written in C utilizing pthreads, shared memory and semaphores.

Notifications You must be signed in to change notification settings

eneskeles/c-sharedmem-server

Repository files navigation

Shared Memory Server

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.

Requirements

  • A UNIX based OS which supports pthreads and shared memory.
  • GCC (GNU C Compiler)
  • make

Usage

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>

About

a simple offline server written in C utilizing pthreads, shared memory and semaphores.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published