𝑭𝒆𝒘 𝑰𝑷𝑪 𝑴𝒆𝒄𝒉𝒂𝒏𝒊𝒔𝒎𝒔 𝒊𝒏 𝑳𝒊𝒏𝒖𝒙

Pipes, FIFOs, and message queues are inter-process communication mechanisms. Pipes enable unidirectional data flow between related processes, while FIFOs allow communication between unrelated processes. Message queues provide message boundaries and message type selection. Each mechanism offers unique functions for creating, sending, receiving, and controlling communication.

Read More  𝑭𝒆𝒘 𝑰𝑷𝑪 𝑴𝒆𝒄𝒉𝒂𝒏𝒊𝒔𝒎𝒔 𝒊𝒏 𝑳𝒊𝒏𝒖𝒙

𝐄𝐱𝐩𝐥𝐨𝐫𝐢𝐧𝐠 𝐭𝐡𝐞 𝐒𝐲𝐬𝐭𝐞𝐦 𝐜𝐚𝐥𝐥𝐬

To transition from user space to kernel space, system calls are essential for executing actions on the kernel’s behalf. One example is the use of dynamic memory allocators like malloc() and realloc(), which rely on system calls such as sbrk() and brk(). Additionally, system calls like system(), clone(), wait(), and rt_sigaction() play key roles in process management.

Read More 𝐄𝐱𝐩𝐥𝐨𝐫𝐢𝐧𝐠 𝐭𝐡𝐞 𝐒𝐲𝐬𝐭𝐞𝐦 𝐜𝐚𝐥𝐥𝐬

Scheduling in OS

Schedulers are vital in determining process execution. The Job Queue stores submitted processes, while the Ready Queue houses processes ready for execution. The Device Queue lists blocked processes. Long-term Scheduler admits processes from the Job Queue, while Short-term Scheduler selects processes for immediate execution. The Medium-term Scheduler manages swapped-out processes.

Read More Scheduling in OS

Auto Backup Files in Linux

This article provides a step-by-step guide on creating an automatic backup command for files in Linux. It covers checking directory existence, creating a file, adding commands, testing the backup, and additional notes on updating and file management within Vim. The process ensures a backup file is created for every new file opened.

Read More Auto Backup Files in Linux

Initialization of OS in MicroC/OS-II

One of the key strengths of 𝐮𝐂/𝐎𝐒-𝐈𝐈 lies in its lightweight and independent task model. Each task executes specific functions or operations, allowing for efficient task switching and context switching. Let’s start by unraveling the software file structure, which sets the foundation for a deep dive into the workings of 𝐎𝐒_𝐈𝐧𝐢𝐭(). We’ll delve into the […]

Read More Initialization of OS in MicroC/OS-II

About Operating Systems

In today’s technological era, embedded systems have become an integral part of our daily life. From smart homes to smart cities, embedded systems are everywhere, and they are making our lives easier and more comfortable. Embedded systems are designed to perform specific tasks, and they are often used in applications where reliability and efficiency are […]

Read More About Operating Systems

Addressing Modes

ALL ABOUT ADDRESSING MODES: Moving into the depths of low-level programming, we land upon assembly language. Assembly language is the closest language to us programmers and hardware. The assembly language is hardware dependent. You can’t write the same code for all the devices that you are about to use. Before you write any assembly code, […]

Read More Addressing Modes

The allocators behind dynamic memory allocators

We know the common memory allocators as 𝐦𝐚𝐥𝐥𝐨𝐜(), 𝐜𝐚𝐥𝐥𝐨𝐜(), 𝐫𝐞𝐚𝐥𝐥𝐨𝐜(). Although having a different functionality, almost all of the above function as the same. 𝐌𝐚𝐥𝐥𝐨𝐜() allocates a chunk of memory with respect to the data type they are provided with.𝐒𝐲𝐧𝐭𝐚𝐱: pointer = (typecast*) malloc(byte-size) 𝐂𝐚𝐥𝐥𝐨𝐜() allocates given chunk of memory with size of each element, […]

Read More The allocators behind dynamic memory allocators

Some UNIX Utilities

GREP: Exploration of the metacharacters: ^ – It matches the beginning of a line $ – It matches the end of a line \ – It matches with a character placed next to it. Ex; * matches with the character * (asterisk) , \, with a comma, ] with a closing rectangular bracket and so […]

Read More Some UNIX Utilities

Stages of a Compiler

( Stage-1 ) About Preprocessor: ( Stage-2 ) About Compiler: ( Stage-3 ) About Assembler: ( Stage-4 ) About Liner or Link Editor: ( Stage-5 ) About Librarians and Libraries: During linking, a standard library, libc.a is automatically linked. If gcc -c is used:– The code is compiled but not linked. If gcc -Dname is […]

Read More Stages of a Compiler