Tagged articles

thread-safe

5 articles · Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Sep 6, 2025 · Fundamentals

Stop Reinventing the Wheel: Use Python’s Built‑In Queue for Fast, Thread‑Safe Tasks

Python developers often create simple queues with lists using append and pop(0), but this approach has O(n) complexity and thread‑safety issues; the article explains how the built‑in queue module provides efficient, thread‑safe FIFO, LIFO, and priority queues, with code examples for single‑thread and multithreaded task processing.

PythonQueuedeque
0 likes · 5 min read
Stop Reinventing the Wheel: Use Python’s Built‑In Queue for Fast, Thread‑Safe Tasks
Liangxu Linux
Liangxu Linux
Nov 9, 2020 · Fundamentals

Understanding Reentrant vs Thread‑Safe Functions in Unix/Linux

This article explains the concepts of reentrant and thread‑safe functions, their differences, how signals affect them, examples of non‑reentrant scenarios, and practical guidelines for writing safe code in C on Unix-like systems.

C ProgrammingPOSIXSignal Handling
0 likes · 14 min read
Understanding Reentrant vs Thread‑Safe Functions in Unix/Linux