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
Operating System Articles
Page 71 of 171
Resuming Process Monitoring for a Process Instance
When multiple processes are suspended on a condition variable x and an x.signal() operation is executed, we must determine which suspended process should be resumed next. A simple solution uses first-come, first-served (FCFS) ordering, where the longest-waiting process is resumed first. However, this approach is often inadequate for complex scheduling requirements. Conditional-Wait Construct The conditional-wait construct provides a more sophisticated scheduling mechanism with the form: x.wait(c); Here, c is an integer expression evaluated when the wait() operation executes. The value of c, called a priority number, is stored with the suspended process name. When ...
Read MoreProgram execution in CPU
One may be amazed how the CPU is programmed. A special register is contained in CPU − the instruction register − whose bit pattern determines what the CPU will do. Once that action has been completed, the bit pattern in the instruction register can be changed, and the CPU will perform the operation specified by this next bit pattern. Most of the modern CPUs use an instruction queue. Some instructions are waiting in the queue, ready to be executed. Different electronic circuitry keeps the instruction queue full while the control unit is executing the instructions. But this is simply ...
Read MoreProcess Communication in Operating System
Processes executing concurrently in an operating system can be classified as independent processes or cooperating processes. An independent process cannot affect or be affected by other processes in the system and does not share data with any other process. A cooperating process can affect or be affected by other processes and shares data with them. Why Process Cooperation is Important Operating systems provide environments that support process cooperation for several key reasons: Information sharing − Multiple users may need concurrent access to the same information, such as shared files or databases. Computation speedup − Tasks can ...
Read MoreHow to use date command in day to day practical usage
In this article, we will learn about the date command in Linux and how to practically use it in day-to-day usage with some practical examples. The date command is used to print or change the system date and time, making it an essential tool for system administrators and users. General Syntax [root@localhost ~]# date [OPTION]... [+FORMAT] [root@localhost ~]# date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] Key Features of the Date Command Print current date and time on the system Display date and time in custom formats Read dates from files Display Universal Coordinated Time (UTC) Set system ...
Read MoreLinux nslookup commands to troubleshoot dns domain name server
nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record. This article explains the nslookup command in detail for DNS troubleshooting. Nslookup can be run in two modes: Interactive and Non-Interactive. Interactive mode is used to query DNS servers about various domains and hosts interactively, while Non-Interactive mode is used to query information about a specific domain or host with a single command. Basic DNS Queries Finding A Record (IP Address) ...
Read MoreHow to find a list of block devices information
The lsblk command is used to display a list of information about all available block devices in Linux systems. However, it does not list information about RAM disks by default. Examples of block devices include hard disks, flash drives, and CD-ROM drives. This article explains how to find and display block device information on Linux machines. Installing lsblk For Fedora and CentOS systems, use the following command − $ sudo yum install util-linux-ng For Ubuntu and Linux Mint systems, use the following command − $ sudo apt-get install util-linux -y ...
Read MoreHow to use diff Command in Linux
The diff command in Linux is a powerful command-line utility used to compare the contents of two files or directories line by line and display the differences between them. This tool is essential for developers, system administrators, and anyone working with text files to identify changes, track modifications, and analyze variations in code, configuration files, or documents. Basic File Comparison The most fundamental use of the diff command is comparing two files. The basic syntax is: diff file1 file2 Example Consider two files with slight differences: $ diff file1.txt file2.txt 2c2 ...
Read Moremd5sum Command in Linux with Examples
The md5sum command in Linux generates MD5 hash values (checksums) for files or text input. MD5 (Message Digest Algorithm 5) is a cryptographic hash function that produces a 128-bit hash value, typically represented as a 32-character hexadecimal string. This command is essential for verifying file integrity and detecting changes in data. The MD5 algorithm creates a unique fingerprint for data. Even a single character change results in a completely different hash value, making it useful for detecting file corruption or unauthorized modifications. Basic Syntax md5sum [OPTION] [FILE]... md5sum [OPTION] --check [FILE] Examples Generating ...
Read MoreDifference between Cold Booting and Warm Booting
When a user presses the power button on their computer, it initiates the process known as booting, which loads and starts the operating system. Booting involves accessing the computer's ROM to load startup instructions, followed by loading the operating system from the boot disk (typically the local hard drive). There are two types of booting − cold booting and warm booting. What is Cold Booting? Cold booting (also called a "hard boot") is the process of starting a computer from a completely powered-off state. During cold boot, the computer must first be shut down completely, then powered on ...
Read MoreDifference between Operating System and Kernel
Both operating system and kernel are types of system software. The basic difference between the two is that an operating system is a system software that acts as the interface between the users and the machine, while a kernel is a part of the operating system that converts user commands into machine language. Understanding the relationship between these two components is crucial for grasping how modern computer systems function and manage resources. What is an Operating System? An Operating System (OS) is system software that manages computer hardware and software resources while providing common services for computer ...
Read More