Processes Exercises

  < Previous  Next >
  1. Names the process states:
    Process states diagram
  2. Names the process transitions:
    Process states diagram with transitions labeled
  3. Discuss with your neighbor what are the missing transitions and when are they possible?
  4. What is displayed after executing the following program:
    #include <stdio.h>
    #include <unistd.h> // pid_t, getpid()
    
    int main( ){
        pid_t  pid1, pid2, pid3;  // Process IDs
    
        pid1 = fork();
        pid2 = fork();
        pid3 = fork();
    
        printf("All done!\n");
    
        return 0;
    }
    
  5. With your neighbor, name as many operations that requires kernel mode as you can.
  6. With your neighbor, discuss if all or part of the OS executes in kernel mode?