Git Product home page Git Product logo

system-v-ipc-library's Introduction

System V IPC Library

This library is used to make the functions used in the System V IPCs libraries more accessible while coding. System V IPC is the name given to three interprocess communication mechanisms that are widely available on UNIX systems: message queues, semaphore, and shared memory.

In folder "lib", you'll find three ".h" and three ".c" files, each for one IPC of the System V IPCs, each of them implements fucntions like "open_queue" for opening message queue that is created before or create a new one, "attach_shmem" for attaching the zero index of the shared memory with a void pointer, "acquire_sem" for acquiring a semaphore at specified index and many other functions you might find useful. There's also one function in the "fork_lib" library which forks and executes a new process with a given executabe name.

To compile the library, you can use the "Makefile" file in the repositary. The Makefile has targets "all" and "clean" to compile and link all libraries together. Below is a summerization:

Compile with "make"

$make

Run with "./main"

$./main

Clean with "make clean"

$make clean

The library is tested in the "test.c" file, you can clone the repositary and test it in the same file with no need to change the Makefile configurations.

system-v-ipc-library's People

Contributors

alaahmad01 avatar

Watchers

 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.