LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ipcmk

creates System V IPC resources

TLDR

Create a shared memory segment
$ ipcmk -M [segment_size_in_bytes]
copy
Create a semaphore set
$ ipcmk -S [element_size]
copy
Create a message queue
$ ipcmk -Q
copy
Create shared memory with specific permissions
$ ipcmk -M [segment_size] -p [0644]
copy

SYNOPSIS

ipcmk [options]

DESCRIPTION

ipcmk creates System V IPC (Inter-Process Communication) resources. These resources allow processes to communicate and synchronize: shared memory enables direct data sharing, semaphores coordinate access to resources, and message queues enable asynchronous messaging.Created resources are identified by a key and ID, which can be viewed with ipcs and removed with ipcrm. Resources persist until explicitly removed or system reboot.

PARAMETERS

-M, --shmem SIZE

Create shared memory segment of specified size in bytes
-S, --semaphore COUNT
Create semaphore set with specified number of elements
-Q, --queue
Create message queue
-p, --mode MODE
Set permissions (octal, default 0644)

INSTALL

sudo apt install util-linux
copy
sudo dnf install util-linux
copy
sudo pacman -S util-linux
copy
sudo apk add util-linux-misc
copy
sudo zypper install util-linux
copy
brew install util-linux
copy
nix profile install nixpkgs#util-linux
copy

CAVEATS

System V IPC has kernel limits on the number and size of resources. Resources are not automatically cleaned up when creating processes exit. Modern applications often prefer POSIX IPC or other mechanisms.

HISTORY

System V IPC was introduced in AT&T UNIX System V in the early 1980s. While older than POSIX alternatives, it remains widely used and supported across Unix-like systems.

SEE ALSO

ipcs(1), ipcrm(1), lsipc(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid