
Send Messages Between Processes with POSIX mq_send and mq_receive
Send and receive messages between processes with POSIX message queues: mq_open, priorities, the mq_receive buffer rule, limits and cleanup on Linux 6.12.
Everything you need to level up your coding skills.

Send and receive messages between processes with POSIX message queues: mq_open, priorities, the mq_receive buffer rule, limits and cleanup on Linux 6.12.

Sleep, Stop and Standby are the three usual low-power modes on a Cortex-M microcontroller. Learn what each one turns off, what it keeps and how it wakes.

Compare Linux system calls on x86-64, ARM64 and RISC-V: the trap instruction, number register, argument registers and the same hello program in each.

Learn the Z80 register set: the accumulator and flags, the BC, DE and HL pairs, IX and IY, SP, the I and R registers and the shadow set swapped by EXX.

Pass messages between FreeRTOS tasks with a queue: create it, send with xQueueSend, receive with xQueueReceive, set timeouts and check the return values.

Share memory between unrelated processes with POSIX shm_open, ftruncate and mmap, add a writer and a reader, and learn the cleanup with shm_unlink. Linux 6.12.

Free an I2C slave holding SDA low after a reset by clocking SCL up to nine times and sending a stop, with a tested C routine and the reason for nine.

glibc wrappers are not thin pass-throughs. See how open becomes openat, exit becomes exit_group, fork becomes clone, and which calls never reach the kernel.

Compare character fields with CLC and CLI, read the condition code, and branch with BC, BRC and the extended mnemonics like BE, JNE and JL in HLASM programs.

A spinlock burns a core while it waits and a mutex sleeps. Compare their costs, write a correct C11 spinlock, and see when user-space spinning beats a mutex.

Build a CMake project for your board with the toolchain file shipped in the Yocto SDK, set install paths with DESTDIR, and run tests under qemu-user.

Write counted loops on the 6502 with DEX and BNE: count down to zero, avoid the 256-iteration trap, nest loops for counts above 255 and work out the cycle cost.
We send one email when a new post is published. No spam.