Skip to content

hechaoli/linux_ipc_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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