Back To Chapter 2

Introduction To Processes

Definition of Process

Operating system's responsibilities MINIX
     special process   init()     in boot image                                                   init
                                        /     /     |      \     \
                                   term2       term1
                                      |               |
                                                     login
                                                       |
                                                      shell
                                                    /  / |  \  \
                                          CMD1 ................. (n processes)

MINIX Process States  (See Figure 2-2 on page 51)

1. I/O interrupt:  A process is waiting for something before it can start to run e.g. waiting for input.
    This process will be switched from Running to Blocked.
2. I/O completed:  The process got the request complete.
    This process will be switched from Blocked to Ready.
    From Blocked state, it can not go Running state and must go to Ready state.
3. Scheduler Dispatch:   The process get scheduled
    This process will be switched from Ready to Running.
4. Preempted:  Interrupt, wait
    This process will be switched from Running to Ready.

The five general process activity states:
(See the state diagram describing how a process transitions from one state to the next)