wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Processes : Process description and control

profile
4475 Mit Gohil
Jul 05, 2024
0 Likes
0 Discussions
54 Reads

Processes in the context of computing refer to instances of executing programs on a computer system. Each process has its own memory space, resources, and execution context. Here's a breakdown of the key aspects related to processes:

  1. Process Description:
    • Program Execution: A process represents the execution of a program. It includes the program code, associated data, and resources like open files and network connections.
    • Memory Space: Each process typically has its own memory space, which includes the executable code, variables, stacks, heaps, etc.

    • Resource Allocation: Processes may require various system resources (CPU time, memory, files) which are allocated to them by the operating system.

      • Process ID (PID): A unique identifier assigned to each process by the operating system, which helps in managing and distinguishing between different processes.

      2.Process Control:

      • Creation: Processes are created either by the operating system when a program is started or by another process (parent process) using system calls like fork() (Unix-like systems) or CreateProcess() (Windows).
      • Scheduling: The operating system scheduler decides which process gets to use the CPU and for how long, based on scheduling algorithms (e.g., round-robin, priority-based scheduling).

        Execution State: Processes transition between different states such as running, ready, waiting (blocked), or terminated. State transitions are managed by the operating system scheduler and are influenced by events like I/O operations, timers, and signals.

      • Termination: Processes can terminate either voluntarily (by calling exit) or involuntarily (due to errors or signals). Upon termination, resources allocated to the process are released by the operating system.                       

        3. Process Communication and Synchronization:

        • Processes often need to communicate and synchronize with each other, especially in multi-process or multi-threaded environments.
        • Mechanisms for inter-process communication (IPC) include shared memory, message passing (pipes, sockets, message queues), and synchronization primitives (mutexes, semaphores) to coordinate access to shared resources.

          4.Process States:

          • Running: The process is currently executing instructions on the CPU.
          • Ready: The process is ready to execute and waiting for its turn to be assigned to a CPU core.
          • Waiting (Blocked): The process is waiting for an event (such as I/O completion) or resource allocation (like memory) before it can proceed.
          • Terminated: The process has finished execution, and its resources have been released back to the system.
          • Understanding processes and their control is fundamental to operating system design, resource management, and application development, especially in ensuring efficient and stable execution of programs on a computer system.


Comments ()


Sign in

Read Next

Hacking Mobile Platforms

Blog banner

Design Considerations for Disk Cache Management

Blog banner

How Unstructured Play Helps Children Become Creative Thinkers

Blog banner

Assignment 2

Blog banner

MEMORY MANAGEMENT

Blog banner

INTERNET SECURITY

Blog banner

What is Spyware? and examples of them.

Blog banner

Linux VServer Architecture

Blog banner

Subnet Masking

Blog banner

Kernel in Operating System

Blog banner

Data Storytelling: Turning Analysis into Business Action

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

Asana

Blog banner

K-means use cases

Blog banner

Drawing tips for a beginner

Blog banner

Threads

Blog banner

Ghee vs. Coconut Oil vs. Mustard Oil: Which Cooking Fat Wins for Indian Food?

Blog banner

"Audit" In Data Science

Blog banner

Digital Marketing

Blog banner

SESSION HIJACKING

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

PHONE TECHNOLOGY

Blog banner

New Ransomware Encrypts Your Android And Then Changes PIN Lock

Blog banner

Multithreading in Operating System

Blog banner

Body Image and Low Self Esteem: Understanding the Emotional Impact Beyond Appearance

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

Social Media Sentiment Analysis

Blog banner

Types Of scheduling

Blog banner

E-learning

Blog banner

Study on cyber and network forensic in computer security management

Blog banner

RAID

Blog banner

PYTHON

Blog banner

Understanding Endometriosis and Its Psychological Impact on Quality of Life

Blog banner

Threads

Blog banner

Memory heirchy

Blog banner

CyberSecurity Color Wheel

Blog banner

How to Run your First android App

Blog banner

Article on Team Work

Blog banner

How Cyber Forensics use in AI

Blog banner

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

indian premier league

Blog banner