• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/15

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

15 Cards in this Set

  • Front
  • Back

What 3 things can occur during a process running state?

1) termination (go to terminated state)


2) system call (go to blocked state)


3) interruption (return to ready state)

When are processes forced to relinquish the CPU?

1) higher priority process arrives and preempts running process


2) timer interrupt occurs (slice exceeded)

Where to processes go when forced to relinquish the CPU?

back to the ready state

What system requests does the blocked state contain?

1) IO operation


2) any other system call

What is a process said to be when it is in the blocked state?

1) blocked (Arpaci-Desseau)


2) waiting


3) sleeping (UNIX)

What is a non-blocking system?

A system call that does not require callers to wait until its completion.


A calling processes is immediately returned to the READY state

How is the blocked state organized?

As a set of queues, one queue per device/OS resource

What information is in the process control block? (7)

1) process identification (pid)


2) process state (NEW, READY...)


3) CPU scheduling information (priority, compatible processors)


4) program counter and other CPU registers (program status word (PSW))


5) memory management information


6) accounting information (CPU/system time used)


7) IO status information (list of opened files, allocated devices)

What does the process table's system wide table contain?

1) process identification


2) process current state


3) process priority and other CPU scheduling information


4) a pointer to the remaining information

When are processes said to be swapped out/suspended?

The following are expelled from main memory:


1) low prioitry processes


2) processes that have been waiting for a long time for an external event

Draw a swapping diagram.

Are suspended processes in main memory?

no.

Are suspended processes included in the process table?

yeah.

What are the two types of suspended processes?

1) waiting for the completion of some request (blocked_suspended)


2) ready to run (ready_suspended)

When should a read process be swapped out?

When it has very low priority, otherwise swapping the process out is a desperate measure.