Handling Signals and Message Queues for Inter-Process Communication
Handling Standard Signals
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
void signal_handler(int sig_num) {
if (sig_num == SIGINT) {
printf("Ctrl+C signal received\n");
}
}
int main(void) {
// Set SIGINT to be ignored
if (signal(SIGINT, SIG_IGN) == SIG_E ...
Posted on Tue, 04 Aug 2026 16:58:24 +0000 by phyzar
Understanding Process Management and Concurrency in Modern Operating Systems
Evolving Operating Systems and Multiprogramming
Early computing environments relied on punch cards, where a single machine handled one card at a time. This sequential approach resulted in severely underutilized central processing units.
To address inefficiency, batch processing systems were introduced. These automated job handling by grouping t ...
Posted on Mon, 03 Aug 2026 16:23:20 +0000 by willwill100
Understanding Linux Processes
Prerequisites for Understanding Processes
Von Neumann Architecture
Most modern computers, from laptops to servers, follow the Von Neumann architecture. This fundamental hardware structure defines how components interact within a computing system.
Key components include:
Input devices: keyboards, disks, network cards, graphics cards, microphone ...
Posted on Fri, 24 Jul 2026 16:46:28 +0000 by batfastad
Essential Linux Command Reference
In Linux, there are several ways to execute commands that continue running even after you close your terminal session:
Background execution with &: The ampersand symbol allows a command to run in the background. However, if you close your terminal (like Xshell), the process will terminate.
nohup command: This allows a command to keep runni ...
Posted on Tue, 21 Jul 2026 16:41:07 +0000 by imstupid
Managing Java Applications on Linux Systems
Running Java Applications in the Background
To execute a JAR file as a background process on Linux, utilize the nohup command combined with the ampersand symbol. This approach ensures the process continues running after terminal session termination.
nohup java -jar application-service.jar > runtime.log 2>&1 &
nohup: Maintains pr ...
Posted on Thu, 16 Jul 2026 16:39:15 +0000 by kam_uoc
MySQL Process Control and Capacity Management Commands
When troubleshooting MySQL performance issues such as CPU saturation, several administrative techniques can help identify and resolve problems efficiently. This guide coveers practical commands for process control, capacity analysis, and schema management.
Bulk Connection Termination
When specific clients generate excessive connections, individ ...
Posted on Mon, 15 Jun 2026 17:02:03 +0000 by gikon
Obfuscating Linux Processes through Filesystem Mounting and Library Hijacking
Process Concealment via Procfs Mounting
In Linux environments, process metadata is exposed via the /proc pseudo-filesystem. Standard monitoring utilities like ps, top, and htop retrieve system information by reading the subdirectories within /proc that correspond to specific Process IDs (PIDs). By utilizing the mount command with the --bind fla ...
Posted on Wed, 03 Jun 2026 16:49:12 +0000 by cameronjdavis
FastCGI Process Manager Architecture and Implementation in PHP7
FastCGI Process Manager (FPM) is a process manager for PHP's FastCGI execution mode. Its core functionality involves managing worker processes that handle FastCGI requests.
FastCGI Protocol Fundamentals
FastCGI is a application-layer communication protocol between web servers (like Nginx or Apache) and application processors. PHP implements the ...
Posted on Wed, 13 May 2026 18:06:13 +0000 by tomkure
Operating System Core Concepts Review
0. TCP/IP Network Model Layers
The TCP/IP model consists of four layers: Application, Transport, Internet, and Network Access.
1. Linux Commands for Process Status, Memory Usage, and tar Extraction
Process Status: Use ps command. For example, ps -aux | grep PID shows the status of a specific process.
Memory Usage: Use free command. For example, ...
Posted on Sat, 09 May 2026 15:12:34 +0000 by AMcHarg
Understanding Linux Process Management: Concepts, States, and Priority
Operating System Fundamentals
Overview
Any computer system includes a fundamental collection of programs collectively known as the Operating System (OS). At a high level, the OS comprises:
Kernel: Handles process management, memory management, file management, and device drivers
Supporting programs: Libraries, shell programs, and other utiliti ...
Posted on Fri, 08 May 2026 23:56:05 +0000 by k_ind