Study your flashcards anywhere!

Download the official Cram app for free >

  • 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

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/12

Click to flip

12 Cards in this Set

  • Front
  • Back
What are the steps that must take place in a context switch?
1. Interrupt
2. Save Registers
3. Determine interrupt type
4. Process Interrupt
5. Schedule "new" process
6. Change state
7. Load registers
What is a context switch?
Switching the CPU to another process. Saving the state of the current process and restoring the state of another process.
How many steps are associated with a state change?
Seven
What is a system call?
A call to the kernel to do something for you, or a special instruction that generates an interrupt
Name a few system calld
Exit
Fork
Read
Write
Allocate Memory
Open
Close
Why is memory protection important?
Memory protection prevents a program from overwriting a portion of the OS so that it can gain control of the OS when it isn't supposed to be able to.
What is a PCB?
Process Control Block
What is a privileged instruction?
An instruction that can only run in privileged mode. This is normally reserved for the OS.
How does a new process get created?
By a call to fork.
What creates the original process and what is it?
The original process is called Init and it is launched by the bios. All future processes are launched by processes already in existence.
When your program is running what is the OS doing?
Nothing.
What was the problem with the dining philosophers?
They could not all pick up forks at the same time because they were not prioritized. If one dies they are happy.