AND ANSWERS
What three components is a computer made of ? - ANSWER✔✔✨---I/O, CPU, Memory
Where do programs become processes ? - ANSWER✔✔✨---Main Memory
What loads the operating system ? - ANSWER✔✔✨---A boot program
What controls the input and output ? - ANSWER✔✔✨---Device controllers connected to a buss
What is the main purpose of dual mode operation ? - ANSWER✔✔✨---We don't want processes to
be able to access hardware or mess with other processes.
What are two main modes of operation ? - ANSWER✔✔✨---Kernel and User Mode
Who is allowed to use kernel mode ? - ANSWER✔✔✨---the OS
All modern operating systems worth talking about* are? - ANSWER✔✔✨---Interrupt drive,
multitasking operating systems
Should you allow programs to control when to use kernel mode or only allow the OS to do it? -
ANSWER✔✔✨---Only allow the OS to do it!
What are you allowed to do in user mode? (basic answer) - ANSWER✔✔✨---Add subtract, compare,
go to ...Basically assembly stuff
,What are you allowed to do in kernel mode? - ANSWER✔✔✨---mess with hardware or other
memory. It can tell you what memory does and doesn't belong to you. Only the OS can use this
Operating system on behalf of user programs must do the kernel mode stuff. How does this happen? -
ANSWER✔✔✨---Interrupts! (Properly, these are really traps), OS receives the interrupt, services it,
and returns control to the process.
When does a program become a process? - ANSWER✔✔✨---When it is loaded into memory and
started!
Who loads Programs into memory in order to turn them into processes? - ANSWER✔✔✨---The OS
What are the 6 main functionalists of the Operating System? - ANSWER✔✔✨---• Load programs
into memory to turn them into processes
• Create, delete, suspend and resume processes
• Schedule processes and threads to CPUs
• Assign resources to processes
• Provide synchronization between processes
• Provide communication between processes
What is the largest storage device the CPU can directly address? - ANSWER✔✔✨---Main memory
In order for programs to run what part of memory must they be located in? - ANSWER✔✔✨---Main
memory
What are the 4 main functionality an OS must perform with respect to memory? - ANSWER✔✔✨---•
Keep track of what memory is being used, and by which
processes
• Decide what to move into and out of memory
• Allocate and de-allocate memory as necessary
, • Make sure processes don't "color outside the lines" of
their memory (more on this later)
What is a file? - ANSWER✔✔✨---It is a name, sequential array of bytes
Almost all data on disks are... ? - ANSWER✔✔✨---files
What are the 4 main functionality of an OS with respect to files? - ANSWER✔✔✨---• Creating,
writing, reading and deleting files
• Creating, writing, reading and deleting directories to organize files
• Providing functions for processes to work with files
• Mapping files onto disks (really, partitions, but we'll call them disks for now)
What are the 4 main functionalities of an OS with respect to disks? - ANSWER✔✔✨---What are the
4 main functionalities of an OS with respect to disks?
What are the 4 main functionalities of an OS with respect to disks? - ANSWER✔✔✨---Input, Output
and Everything Else: Almost all other devices (everything else) in a modern operating system are viewed
in one of two ways. 1. A memory space, 2. As a file
Almost all other devices in a modern operating system are viewed in one of two ways... ? -
ANSWER✔✔✨---A memory space or a file
Almost all other devices in a modern operating system are viewed in one of two ways. 1. A memory
space, 2. As a file. What is the biggest exception to this? - ANSWER✔✔✨---Network Interfaces are
the biggest exception
Because everything needs either somewhere its coming from or somewhere is going to and a file does
not suffice.
Each device has a ....? - ANSWER✔✔✨---Device Driver