Operating System Intro (PPT 1) Flashcards
What is an Operating System?
It is a complex program which is in charge of the computer.
What are the three main purposes of the OS?
- Provide an extended machine interface (for the programmer)
- Provide efficient, safe management of computing resources
- Provide a user interface for user interaction
What would a programmer have to know if there was no operating system?
- The ins and outs of hardware, in detail
- Be able to access and program the hardware
What would every program need to contain if there was no operating system?
- Would have to contain code to do the same thing so lots of duplication
- Would probably do something wrong and clash with another program
What does the OS provide to programs?
- A simpler, more powerful interface
- Higher level services
How are OS Services accessed?
OS Services are only accessed by system calls. The user and programs should never have to directly interact with the hardware
What does a program see the OS as?
It sees it as a set of system calls, called the Application Programming Interface (API)
What is the Kernel?
This is the main OS program, it contains code for most of the services. Always in primary memory
What are Device Drivers?
These are programs which provide a simple, consistent interface to Input/Output devices. They are typically part of the kernel.
What is a Program?
A static file of machine code on a disk. Dead code
What is a Process?
A program in execution. “Living” code. The collection of resources and OS data structures owned by a program while it is running
What are some examples of OS functions?
- Open
- Read
- Close
What is the process of adding a new device on a old OS?
- Get the device driver software
- Recompile the kernel with the new device included
- Re-boot the machine so the new kernel and driver will be used.
What is Micro-Kernel Approach?
This is a newer method for kernel structure. The kernel contains the minimum functions and the rest is provided by user level processes
What is contained within the Micro kernel?
- Memory management
- Basic CPU management
- Inter process communication
- I/O support