This repository contains the implementation of a C program for creating and communicating processes using shared memory. It calculates the value of Pi using two different series - Gregory-Leibniz and Nilakantha - to demonstrate the inter-process communication and shared memory management in a Linux environment.
- Familiarize with process programming, creation, and communication.
- Creation, writing, and reading of Shared Memory.
- Linux Operating System.
- GCC Compiler.
- C Programming Language.
- Creation of processes, creation, writing, and reading of POSIX Shared Memory in C.
src/
: Folder containing the source code files.README.md
: This file, containing project description and instructions.
- Clone this repository or download the source code.
- Open a terminal and navigate to the
src/
folder. - Compile the program using the command:
gcc main.c -o main -lrt
- Run the compiled program with an integer parameter N:
./main N
This project is open source and available under the MIT License.
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes.
- Create a pull request, describing the changes you've made.