How to Check Little or Big Endian in C: A Step-by-Step Guide

In computing, the terms “Little Endian” and “Big Endian” refer to the order in which bytes are … Read more

How to Identify File Size in C Using Linux stat System Call

In Linux programming, determining the size of a file is a common task. One efficient way to … Read more

C program to read file properties using stat() function

Stat for file information

Stat system call in Linux return information about a file, in the buffer pointed to by buf. … Read more

C program to find file properties using stat() function

Stat for file information

Stat() function in C is used to retrieve information about the file by accepting the filepath as … Read more

How executable is created during compilation on Linux ?

This code is tested on Ubuntu . You may need to twick the script if you use a … Read more

What is the Difference between Process and Thread ?

Creating a new thread is very similar to forking a new process, but there are differences. When … Read more

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