
Choose OpenMP Schedules: static, dynamic and guided
Pick the right OpenMP loop schedule by looking at how iteration cost varies, with deterministic examples of static, dynamic, guided and runtime scheduling.
Tag
255 posts

Pick the right OpenMP loop schedule by looking at how iteration cost varies, with deterministic examples of static, dynamic, guided and runtime scheduling.

Print strings and hex values in 16-bit real mode with BIOS int 0x10, using teletype function 0x0E and write-string function 0x13, in reusable NASM routines.

Compare CreateThread and _beginthreadex on Windows, see why C runtime code should use the second, and pass arguments, return values and handles safely.

Write an 8N1 UART transmitter and receiver in Verilog with mid-bit sampling and a loopback testbench that sends 0x55 and 0xA3 and checks the bytes.

Encode H.264 and HEVC on Intel and AMD GPUs in FFmpeg 7.1 with h264_vaapi and hevc_vaapi: device setup, hwupload, rate control and keeping frames on the GPU.

Sum, count, min and max across threads without a data race using the OpenMP reduction clause, including initial values, array sections and float ordering.
Why GDB shows optimized out and jumps lines at -O2, how GCC -Og and variable tracking keep more values, and what to do when you must debug the real build.

Write a mode 0 SPI slave in Verilog that samples SCK, CS and MOSI with the FPGA clock, shifts bytes in and out and is tested with a simulated SPI master.

Create an ext4 filesystem inside a plain file, read its superblock with dumpe2fs, and walk inodes and directories with debugfs without mounting anything.

Use ISPF HEX ON in edit or browse to read COMP-3 packed decimal fields in a dataset, decode sign nibbles by hand, and find the record that causes an S0C7.

Set kernel.perf_event_paranoid, kernel.kptr_restrict and CAP_PERFMON so perf can sample user and kernel code without running everything as root.

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.