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
What is operating system design and implementation?
Operating system design and implementation refers to the systematic approach of creating an OS that efficiently manages computer resources while meeting user requirements. Proper design ensures the system works reliably, can be easily maintained, and adapts to changing hardware and software environments. The design and implementation process involves careful planning of system architecture, defining core mechanisms, and translating theoretical designs into working code. Without this structured approach, an operating system cannot provide reliable services or scale to meet modern computing demands. Design Goals Design goals establish the fundamental objectives that guide OS development. These goals ensure the ...
Read MoreFind the Current Working Directory of a Running Process in Linux
One of the basic tasks when working with processes on a Linux system is determining the current working directory of a process. The current working directory, also known as the "current directory" or "current working folder, " is the directory in which a process runs and interacts with files. Knowing the current working directory of a process can be useful for debugging, understanding the environment in which a process is running, or monitoring process activity. In this article, we will discuss how to find the current working directory of a running process on Linux. We will cover several methods ...
Read MoreHow to investigate which process causes wakeups during laptop sleep-mode in MacOS (or Linux)
When a laptop goes into sleep mode, the operating system tries to conserve power by stopping most processes and putting the computer in a low-power state. However, sometimes a process may continue to run or periodically wake up the computer, preventing it from entering a deep sleep state. This can lead to increased power consumption and shorter battery life. In this article, we'll explore how to investigate which process is causing wakeups during laptop sleep-mode in MacOS or Linux. Understanding Power Management Subsystem Before diving into how to investigate sleep mode wakeups, it's important to understand the power ...
Read Moredpkg Command in Linux With Examples
dpkg is a low-level package management system for Debian-based Linux distributions like Ubuntu, Debian, and Linux Mint. It handles the installation, removal, and management of .deb package files directly. While higher-level tools like apt and apt-get provide dependency resolution, dpkg focuses on the core operations of package handling. What is the dpkg Command? The dpkg command is responsible for the fundamental package management tasks such as unpacking archives, installing files, configuring packages, and maintaining the package database. It operates at a lower level than tools like apt, giving administrators direct control over individual package operations without automatic dependency ...
Read MoreDifference Between Stimulus and Response Events
The concepts of stimulus and response events play a crucial role in understanding how systems and programs interact with each other and with their environment. These terms are often used in the context of event-driven programming, where software components respond to various events triggered by user actions or other system events. In this article, we will explore the fundamental differences between stimulus and response events and delve into their significance in computer science. What are Stimulus Events? Stimulus events can be thought of as triggers or inputs that initiate a particular action or behavior within a system. These ...
Read MoreRun Cron Job Only If It Isn't Already Running in Linux
Cron is a utility in Linux that allows users to schedule commands or scripts to run automatically at a specific date and time. However, sometimes it may be necessary to ensure that a cron job does not run more than once at a time, preventing resource conflicts or data corruption. In this article, we will discuss two effective methods to prevent overlapping cron tasks: using process tracking and using a .pid file. Method 1: Process Detection with pgrep One way to avoid overlapping cron task execution is to check for the presence of the task's process before running ...
Read MoreCMake configure fails to find Qt5 on Linux
CMake is an open-source cross-platform tool used for building, testing and packaging software. It is widely used in industry for its portability and ability to generate build scripts for various build systems such as make, ninja, etc. Qt5 is a cross-platform application development framework that is widely used in creating GUI applications. In this article, we will discuss a common issue that developers face while configuring a CMake project on Linux: CMake configure fails to find Qt5. Understanding the Issue When we configure a CMake project with Qt5, CMake needs to find the Qt5 package, which includes required ...
Read MoreHow to Access Remote Desktop from Browser Using TightVNC
Remote Desktop is a handy tool that allows you to access your computer from a different location, using another device. It is very useful, especially for remote workers, who need to access their work computer from home or any other location. The most common way to access a remote desktop is through a client software installed on the device, but there is an easier way to access it: using a browser. In this article, we will show you how to access remote desktop from a browser using TightVNC. What is TightVNC? TightVNC is a free remote control software ...
Read MoreDive Deep Into Python Vs Perl Debate – What Should I Learn Python or Perl
Python and Perl are two popular programming languages used for a variety of purposes. Both languages have their own strengths and weaknesses, and choosing between them can be a difficult decision for aspiring programmers. In this article, we will take a deep dive into the Python vs Perl debate and help you make an informed decision on which language to learn. Python vs Perl: An Overview Python and Perl are both high-level, interpreted programming languages that are used for a wide range of applications. Python was created in the late 1980s by Guido van Rossum, while Perl was ...
Read MoreWhat is the concept of Monolithic kernel?
The kernel is the core component of an operating system that acts as a bridge between applications and the hardware. It is the first program loaded after the boot loader and remains in memory until the system shuts down. When a process needs to access hardware resources, it makes a system call to the kernel. Functions of Kernel The kernel performs several critical functions − Process management − Creating, scheduling, and terminating processes Memory management − Allocating and deallocating memory for processes Device management − Managing hardware devices and device drivers File system management − Handling ...
Read More