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
51 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

Clarizen

Blog banner

How the mobile IP is used in GSM architecture.

Blog banner

SPEM

Blog banner

LINUX

Blog banner

Depression

Blog banner

Review on Cyber Forensics and its Analysis Tools

Blog banner

Famous Indian dishes that where misunderstood to be Indian

Blog banner

Rain bow

Blog banner

Types of threads

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

OPERATING SYSTEM

Blog banner

Health is Wealth

Blog banner

MPL and how its effects?

Blog banner

HOW A CENTRAL PROCESSING UNIT (CPU) WORKS?

Blog banner

ARTICLE ON WRIKE CORPORATION

Blog banner

ADIDAS

Blog banner

Starvation and Deadlock.

Blog banner

MD5 Collisions and the impact on computer forensics

Blog banner

10 Unknown facts about India's Independence

Blog banner

When Is the Right Time to Enrol My Toddler Into Preschool? NEP

Blog banner

Virtual memory

Blog banner

About myself

Blog banner

Cyber Laws In India and Around the World

Blog banner

The Benefits of Practical Life Activities in Preschool

Blog banner

Deadlock

Blog banner

Multiple-Processor Scheduling in Operating System

Blog banner

Memory Management in an Operating System

Blog banner

Types of E-Commerce

Blog banner

How International Schools Build Global-Minded Students through Curriculum & Activities

Blog banner

Music is life

Blog banner

Disk scheduling

Blog banner

Memory Management in Operating System

Blog banner

Paginng In OS

Blog banner

ARTICAL ON MANAGEMENT SYSTEM

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

Fudgy Tahini Date Chocolate Bars

Blog banner

The Impact of Tolerances and Wall Thickness on Pipeline Integrity

Blog banner

City of Mumbai (Bombay):

Blog banner

Tableau

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

Benefits of yoga and meditation

Blog banner