Skip to content

hechaoli/linux_ipc_examples

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Overview

This repo contains example code of using Linux IPC (Inter-Process Communication) mechanisms including message queue, semaphore and shared memory. For each mechanism, there is one example of POSIX API and one example of system V API.

Message queue

The example code is a simple echo server/client system.

Semaphore

The example code is a simple producer/consumer system. The producer produces files into a directory and the consumer consumes files from it.

Shared memory

Similar to semaphore example, this example is also simple producer/consumer system. Different from the semaphore example, instead of using a directory as the queue, this example uses shared memory as the queue.

About

Example code of using Linux IPC (Inter-Process Communication) mechanisms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published