Giter VIP home page Giter VIP logo

processes_n_pipes-c's Introduction

๐Ÿ”„ Processes-N-Pipes: Enhanced IPC Demo with Delays

Welcome to Processes-N-Pipes, an advanced exploration into the realms of inter-process communication (IPC) using pipes, now featuring a user-friendly terminal menu and customizable communication delays. This toolkit extends our initial case inversion example to include a variety of operations and demonstrates the effect of delays in IPC, making it a comprehensive educational tool for learners and educators alike.

๐ŸŽฏ Core Functionality

  • Extended IPC Operations: Engage with a broader range of operations beyond case inversion, including uppercase transformation, palindrome creation, and random math operations on numbers.
  • Terminal Menu: Navigate through the options easily with a simple-to-use terminal menu, enhancing user interaction.
  • Communication Delays: Experience the impact of timing in IPC with deliberate delays introduced between parent and child processes, simulating real-world scenarios where processes operate at different speeds.
  • Educational Tool: With these new features, delve deeper into IPC mechanics in a clear, engaging manner, perfect for those looking to enhance their understanding of process communication.

๐Ÿ›  Getting Started

Prerequisites

Prepare for this IPC journey with:

  • A GCC compiler or any standard C compiler.
  • Basic terminal operations.

Installation & Compilation

Ensure your project directory is structured properly with main.c and utilities.c inside the /src folder, and utilities.h inside the /include folder.

  1. Clone this repository:

    ```bash git clone https://github.com/your-username/Processes-N-Pipes.git ```

  2. Navigate to the project directory: ```bash cd Processes-N-Pipes ```

  3. Compile the project using the Makefile: ```bash make ```

This will compile the source files from the /src directory and place the executable in the /build directory as defined in the Makefile.

๐Ÿ“˜ How to Play

After compiling, run the executable to access the terminal menu:

./build/processes-n-pipes

Follow the on-screen prompts to choose between various IPC demonstrations. When prompted, enter a message or a number based on your selection. Explore different functionalities and observe the impact of communication delays firsthand.

๐ŸŒŸ New Demonstrations & Features

This version introduces a terminal menu that allows users to select between different demonstrations:

  • Toggle and Return a Message: Inverts the case of each character in a string.
  • Uppercase and Return a Message: Converts a string to uppercase.
  • Palindrome and Return a Message: Creates a palindrome from the input string.
  • Perform a Random Math Operation on a Number: Executes a random math operation on a provided number.

Additionally, the introduction of a 3-second delay between parent and child communications offers insights into how processes interact with timing considerations.

๐Ÿ’ก Contribute & Learn

Dive into the Processes-N-Pipes project! Your contributions, whether they're new features, bug fixes, or documentation improvements, are a fantastic way to deepen your understanding of IPC and contribute to the learning community.

๐Ÿ“œ License

Distributed under the MIT License. See LICENSE for more information.

๐Ÿค Support & Questions

Encountered a challenge? Have a question? Open an issue on our GitHub issue tracker for support and guidance.

Embark on your IPC learning journey with Processes-N-Pipes and enjoy the advanced adventure of communication between processes!

processes_n_pipes-c's People

Contributors

wal33d avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.