Learn
Build durable
engineering
understanding
Practical tutorials and deep explanations grounded in reproducible environments, exact versions, and observable results.
Start learning your way
Choose your path
Learn by technology
Explore engineering domains
Learning search
Results for “Operating System Concepts”
26 results
Existing library
Continue exploring
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
Create process in Linux using fork system call
Below is simple process creation program using fork system call, fork return child’s process Id in main/parent … 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.
Difference between Spinlock and Semaphore
Spinlocks Spinlocks assume the data you are protecting is accessed in both interrupt-handlers and normal kernel code. … Read more
Difference between Mutex and Semaphore
Besides the better readability, the code for mutex is smaller and slightly faster than the semaphore implementation. … Read more
What is Zombie process and How to create zombie process in Linux
Zombie process is the process which died immediately and whose parent didn’t cared to handled the status … Read more
C program to read mac address using WiFi interface name
If you need to get the mac address of certain wifi interface using C program, you can … Read more
What is Linux Out-Of-Memory OOM Killer
Major distribution kernels set the default value of /proc/sys/vm/overcommit_memory to zero, which means that processes can request … Read more

