What is ARP? Understanding Address Resolution Protocol Basics (Simple Guide)
When two devices on a local network need to communicate, they don’t rely solely on IP addresses—they … Read more
Lynxbee topic
When two devices on a local network need to communicate, they don’t rely solely on IP addresses—they … Read more
Linux initscripts are an essential part of the booting process, allowing administrators to automate services that start … Read more
In C programming, understanding how memory is allocated is crucial for writing efficient and bug-free code. The … Read more
Wi-Fi has become an indispensable part of our daily lives, connecting our devices seamlessly to the internet. … Read more
Multi-threading is an essential concept in modern programming, allowing multiple tasks to be performed simultaneously within a … Read more
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
This code is tested on Ubuntu . You may need to twick the script if you use a … Read more
Creating a new thread is very similar to forking a new process, but there are differences. When … Read more
Spinlocks Spinlocks assume the data you are protecting is accessed in both interrupt-handlers and normal kernel code. … Read more
Besides the better readability, the code for mutex is smaller and slightly faster than the semaphore implementation. … Read more
Zombie process is the process which died immediately and whose parent didn’t cared to handled the status … Read more
If you need to get the mac address of certain wifi interface using C program, you can … Read more
Major distribution kernels set the default value of /proc/sys/vm/overcommit_memory to zero, which means that processes can request … Read more
In our previous post, we understood “What is Out of Memory Killer ?” In this post, we … Read more
Zombie process is the process which dies/finishes immediately and whose parent didn’t cares to handle the status … Read more
Below is simple process creation program using fork system call, fork return child’s process Id in main/parent … Read more
Following C program helps you to identify what is the total and free memory / RAM available … Read more
Following is the simple example to show, how we can create two threads at a time and … Read more
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.
In this post, we create a simple thread using pthread library API “pthread_create” and wait for this … Read more
Operating-System-Concepts
If data is written, it is first written to the Page Cache and managed as one of … Read more
This post is in continuation of our previous post “Understanding ARP (Address Resolution Protocol) basics“ To visualise … Read more
Signals are a limited form of inter-process communication (IPC), typically used in Unix, Unix-like, and other POSIX-compliant … Read more