Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Monolithic System Architecture
The Monolithic System Architecture is an operating system design where all OS services run in the kernel space. Unlike microkernel systems that keep only essential components in the kernel, monolithic kernels include all operating system functionality within a single address space, resulting in a larger but more efficient kernel. How Monolithic Architecture Works Monolithic System Architecture User Space Application 1 Application 2 Application 3 ...
Read MoreActions taken by a kernel to context-switch between kernel-level threads.
Context Switching involves storing the context or state of a process or thread so that it can be reloaded when required and execution can be resumed from the same point as earlier. This is a feature of a multitasking operating system and allows a single CPU to be shared by multiple processes and threads. When the kernel needs to switch between kernel-level threads, it performs a series of specific actions to ensure proper state preservation and restoration. Unlike user-level thread switching, kernel-level thread context switching requires direct kernel intervention and system-level operations. Actions Taken by Kernel for Context ...
Read MorePass the Output of a Command as an Argument for Another on Linux
When working with the Linux command line, we often need to use the output of one command as input or arguments for another command. This tutorial explores various methods to achieve this, including command substitution, process substitution, pipes with read, and the powerful xargs utility. Preparing Sample Files Let's create test directories and sample files to demonstrate each method: mkdir dir_example target truncate -s 10 dir_example/file{1..3}.this truncate -s 4 dir_example/file{1..2}.not This creates two directories and two sets of files: three files with 10 bytes (*.this) and two files with 4 bytes (*.not). Using ...
Read MoreBest Linux Media Center Distros for Your Home Theater PC
If you're looking for a media center operating system for your home theater PC, Linux has plenty of options available. Linux is known for its flexibility, customization, and stability, making it a great choice for a media center. In this article, we'll take a look at some of the best Linux media center distros for your home theater PC. We'll cover different features, benefits, and drawbacks of each distro, along with some examples of popular media center software. What is a Media Center Distro? A media center distro is a version of Linux designed specifically for use ...
Read MoreRecursively Deleting Files With a Specific Extension on Linux
On Linux, there are several ways to recursively remove files with a specific extension from a directory and its subdirectories. Deleting files recursively means deleting all files with the specified extension from the current directory and all nested subdirectories. This operation can be time-consuming if done manually, especially for a large number of files. This article explores four effective methods to recursively delete files with a specific extension on Linux. Using the find Command with -delete Option The most efficient method uses the find command with the built-in -delete option. This approach is fast and doesn't require spawning ...
Read MoreHow to Increase Disk Inode Number in Linux
In Linux, an inode is a data structure that stores metadata about files and directories, including ownership, permissions, size, and disk location. Each file system has a fixed number of inodes created at format time. When inodes are exhausted, no new files can be created even if disk space remains available. This article explains how to increase the inode count in Linux. Understanding Inodes Inodes are allocated when the file system is created, not when files are created. Each inode contains a unique number that the file system uses to track files. The total inode count is determined ...
Read MoreHow to Fix Shared connection to x.x.xx closed Ansible Error?
Ansible is a powerful automation tool used for configuration management, application deployment, and task orchestration across multiple systems. One common error that can disrupt automation workflows is the "Shared connection to x.x.xx closed" message, which indicates an abrupt termination of the SSH connection between the Ansible control node and target hosts. Understanding the Error This error occurs when Ansible's SSH connection to a remote host is unexpectedly terminated during task execution. The connection uses SSH multiplexing (ControlMaster) to share a single connection across multiple operations, improving performance but making the entire session vulnerable to network disruptions. Common ...
Read MoreUnderstanding stdin, stderr and stdout in Linux
There is a decent chance that if you have used Linux operating systems then you might have encountered the three famous data streams known as stdin, stderr and stdout. All these are different in their functions and have their own uses but one thing common between all three of them is that they are data streams that the shell creates. Let's understand more about what data streams actually mean and how they are beneficial. In terms of computing, a data stream is something that gives us the ability to transfer data from a source to an outflow and vice ...
Read MoreWhat is the concept of thread?
A thread is a lightweight unit of execution within a process and represents the basic unit of CPU utilization. It consists of a program counter, a stack, and a set of registers, allowing multiple execution paths within a single process. Process with Multiple Threads Process Code Section Data Section Files (shared resources) Thread 1 PC, Registers Stack Thread 2 ...
Read MoreProgramming challenges in multicore systems
The trend towards multicore systems continues to place pressure on system designers and application programmers to make better use of multiple computing cores. Designers of operating systems must write programming algorithms that utilize multiple processor cores to enable parallel execution as shown below − Parallel Execution on a Multicore System CPU Package Core 1 Task A Task B ...
Read More