Chapter 1: Process On Io

IO Operations and Scheduling Impact

Introduction to IO Operations in Scheduling

  • Importance of considering how IO operations affect process scheduling.

  • Operating system (OS) manages resource access on the hardware platform, including:

    • Central Processing Unit (CPU)

    • Memory

    • Input/Output (IO) devices (e.g., keyboards, network cards, disks, etc.).

Process IO Request Management

  • When a process makes an IO request:

    • The OS delivers the request; for example, a read request to a disk.

    • The requesting process is placed into the IO queue associated with the specific disk device.

Waiting for IO Completion

  • The process stays in the IO queue until the following occurs:

    • The device completes the IO operation.

    • The OS receives a response for the specific request.

Transition to the Ready State

  • Upon successful completion of the IO request, the process becomes ready to run again.

  • Depending on the current system load, the process can:

    • Be placed in the ready queue if other processes are waiting.

    • Be scheduled immediately on the CPU if no other processes precede it in the ready queue.

Pathways into the Ready Queue

  • There are several pathways for a process to enter the ready queue:

    1. A process waiting on an IO event moves into the ready queue after completion of that IO request.

    2. A process that was running on the CPU returns to the ready queue once its time slice expires.

    3. A newly created process, resulting from the fork system call, enters the ready queue.

    4. A process that is waiting for an interrupt will also enter the ready queue once the interrupt occurs.