Lynxbee topic

Operating System Concepts

Inspect File Attributes in C Using the stat System Call

The stat() system call in POSIX C returns file metadata—including file size, inode number, permission bits, block allocation count, ownership UIDs, and access timestamps—from a file's inode structure without opening or reading the file contents. The struct stat data structure The system header <s

Avoid zombie process in Linux

Zombie process is the process which dies/finishes immediately and whose parent didn’t cares to handle the status … Read more

Protect Shared State with pthread_mutex_lock

A POSIX mutex does not make a variable magically private; it gives cooperating threads one serialized critical section and establishes synchronization around protected state. Build a checked C example, understand why the unlocked version is undefined, find races with ThreadSanitizer, and choose between mutexes and atomics.

Engineering weekly

Useful technical knowledge, not inbox noise.

Receive verified fixes, references, labs, and tools. Confirm by email; unsubscribe any time.