Quiz 1 Flashcards
What are four components of a computer system?
Hardware – provides basic computing resources
CPU, memory, I/O devices
Operating system - Controls and coordinates use of hardware among various applications and users
Application programs – define the ways in which the system resources are used to solve the computing problems of the users. i.e. Word processors, compilers, web browsers, database systems, video games
Users - People, machines, other computers
What is a bootstrap program?
- A bootstrap program is loaded at power-up or reboot
- Typically stored in ROM or EPROM, generally known as firmware
- Initializes all aspects of system
- Loads operating system kernel and starts execution
What are some resources that the operating system allocates?
CPU Time, memory space, storage space, I/O devices
What is resource utilization?
How various hardware and software resources are shared
What is middleware?
A set of software frameworks that provide additional services to application developers.
What is a kernel?
The one program that is running at all times on the computer, a broad definition used for many different types of operating systems.
What is a device driver?
An operating system will typically have a device driver which understands the device controller and provides the rest of the operating system with a uniform interface of the device.
Besides the kernel what are the other two types of programs?
A system program (ships with the operating system, but not part of the kernel)
An application program, all programs not associated with the operating system
How does a device controller operate?
- I/O devices and the CPU can execute concurrently
- Each device controller is in charge of a particular device type
- Each device controller has a local buffer
- Each device controller type has an operating system device driver to manage it
- CPU moves data from/to main memory to/from local buffers
- I/O is from the device to local buffer of controller
- Device controller informs CPU that it has finished its operation by causing an interrupt
What are interrupts and what are some common interrupt functions?
- Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines
- Interrupt architecture must save the address of the interrupted instruction
- A trap or exception is a software-generated interrupt caused either by an error or a user request
- An operating system is interrupt driven
How are interrupts handled?
- The operating system preserves the state of the CPU by storing registers and the program counter
- Determines which type of interrupt has occurred:
- polling
- vectored interrupt system - Separate segments of code determine what action should be taken for each type of interrupt
What is the difference between polling and interrupting?
With interrupting the system waits for input from an I/O device to interrupt in order to handle that input. With polling, the system is constantly checking to see if it needs to handle any input.
What is a system call?
Request to the OS to allow user to wait for I/O completion
What is a device status table?
Contains entry for each I/O device indicating its type, address, and state
What is main memory?
- Only large storage media that the CPU can access directly
- Random access
- Typically volatile
- Typically random-access memory in the form of Dynamic Random-access Memory (DRAM)
What is secondary storage?
Extension of main memory that provides large nonvolatile storage capacity
What is an HDD
- Rigid metal or glass platters covered with magnetic recording material
- Disk surface is logically divided into tracks, which are subdivided into sectors
- The disk controller determines the logical interaction between the device and the computer
What are non-volatile memory (NVM) devices?
Faster than hard disks, nonvolatile memory is memory that can store information even after the device has been turned off.
- Various technologies
- Becoming more popular as capacity and performance increases, price drops