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
Mastering Multi-Processing in Python
Operating System Fundamentals
A process represents an active instance of a executing program. It serves as the primary abstraction layer the operating system uses to manage computational workloads, allocate system resources, and schedule CPU time. Historically introduced alongside early multitasking systems, the process model enables pseudo-con ...
Posted on Tue, 21 Jul 2026 16:12:39 +0000 by crispytown
Overriding Parent Class Methods and Handling Return Values in Python
In object-oriented programmnig, subclassing allows you to override parent class methods. When overriding, it's crucial to handle return values appropriately if the parent method provides one. For example, consider a custom process class derived from Ptyhon's multiprocessing.Process:
import os
import time
from multiprocessing import Process
cl ...
Posted on Thu, 25 Jun 2026 16:26:06 +0000 by EchoFool
Python 3.6 Migration and Development Techniques
Upgrading Python from 2.7 to 3.6
Legacy virtual machines often default to Python 2.7. Verify the current installation:
which python
ls -lah /usr/bin/python
Install Python 3.6:
yum install epel-release
yum install python36
cd /usr/bin/
rm python
ln -s python3.6 python
python --version
After installation, Python 3.6 will be available at /usr/bi ...
Posted on Mon, 22 Jun 2026 16:29:24 +0000 by tskweb
Python Implementation of Multiprocessing and Multithreading with Practical Examples
Multiprocessing in Python
Multiprocessing allows the execution of multiple processes simultaneously, each with its own memory space. Below is a practical example demonstrating how to create and manage procseses using the multiprocessing module.
import os
import time
import multiprocessing
def vocal_performance(count, artist):
print('Child ...
Posted on Sun, 21 Jun 2026 16:45:31 +0000 by Barand
Understanding Multiprocessing and Multithreading Concepts
A process represents an independent executable program unit that contains one or more threads. A thread serves as the fundamental execusion unit within a process and represents the smallest schedulable unit by the operating system.
Multithreading
Multithreading enables concurrent execution of multiple threads within a single process.
Advantages ...
Posted on Thu, 18 Jun 2026 16:44:22 +0000 by bluestar
Python Process Management Summary
CSDN Challenge 2
Participation Topic: Study Notes
I. Process Object Methods
start: Start the process
run: Executes the task function specified by target
from multiprocessing import Process
import time
def task():
for i in range(6):
print(f"Main process {i} working")
time.sleep(1)
def study():
for i in range(5):
...
Posted on Tue, 16 Jun 2026 18:08:24 +0000 by DanielHardy
Using Python and multiprocessing to Start Multiple Appium Instances
Starting Appium services manual via terminal or batch scripts is inefficient. This article demonstrates how to automate launhcing multiple Appium servers using Python's subprocess and multiprocessing modules, enabling multi-device test execution in parallel.
Launching a Single Appium Instance with subprocess
The subprocess module allows spawnin ...
Posted on Fri, 12 Jun 2026 16:06:39 +0000 by pc-coholic
Python Concurrency: Threads, Processes, and Thread Pools
Global Interpreter Lock in Python
The Global Interpreter Lock (GIL) is a mutex that protects access to Python objects, preventing multiple native threads from executing Python bytecodes at the same time. In CPython, the standard implementation of Python, the GIL ensures that only one thread executes at a time.
This means that even with multip ...
Posted on Sun, 07 Jun 2026 17:04:27 +0000 by dhvani
Implementing xv6 User Programs: sleep, pingpong, primes, find, and xargs
This lab requires implementing five user-space programs: sleep, pingpong, primes, find, and xargs.
Source code: https://github.com/InQing/xv6-operating-system/tree/util
(1) sleep
Requirements
Write a user program that takes one argument t and calls the sleep system call to sleep for t time units.
Approach
This lab does not require implementing ...
Posted on Thu, 28 May 2026 17:28:46 +0000 by sapna