Skip to content
systemcoding.dev

Tag

c

362 posts

Flat illustration of parallel threads meeting at a mutex, with the C, Go and Rust logos.
Concurrency

Parallelize a Loop with

Turn a serial C loop into a multithreaded one with one OpenMP pragma, then learn which loops are safe to split and which ones silently give wrong answers.

7 min read
Flat illustration of RTOS tasks taking turns on a timeline, with the C, Espressif and Arm logos.
RTOS

Use ThreadX Byte and Block Memory Pools

Allocate memory in ThreadX with byte pools and fixed-size block pools, using tx_byte_allocate and tx_block_allocate, and choose by fragmentation and timing.

6 min read