Skip to content

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.

License

Notifications You must be signed in to change notification settings

joseg20/Process-Creation-and-Communication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process Creation and Communication

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.

Objectives

  • Familiarize with process programming, creation, and communication.
  • Creation, writing, and reading of Shared Memory.

Tools Used

  • Linux Operating System.
  • GCC Compiler.
  • C Programming Language.
  • Creation of processes, creation, writing, and reading of POSIX Shared Memory in C.

Project Structure

  • src/: Folder containing the source code files.
  • README.md: This file, containing project description and instructions.

How to Compile and Run

  1. Clone this repository or download the source code.
  2. Open a terminal and navigate to the src/ folder.
  3. Compile the program using the command: gcc main.c -o main -lrt
  4. Run the compiled program with an integer parameter N: ./main N

License

This project is open source and available under the MIT License.

Contributing

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes.
  4. Create a pull request, describing the changes you've made.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages