• 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/42

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;

42 Cards in this Set

  • Front
  • Back
What is an operating system?
An operating system is a program that manages computer hardware, provides a basis for applications programs, and acts as an intermediary between computer user and hardware. They are designed for some combination of ease of use and efficiency.
How do operating design specs differ between mainframes, tablets, and personal computers?
Mainframes for efficiency, tablets are designed for convenience, and personal computers are designed for both efficiency and convenience.
How would you define an operating system from a system view?
An operating system is a resource allocator-not only does it manage resources but it decides between conflicting requests for efficient and fair resource use.

An operating system is also a control program that controls execution of programs to prevent errors and improper use of the computer.
What is a bootstrap program?
A bootstrap program is a program loaded at power-up or reboot.
How do device controllers connect to the CPU(s)?
They are connected through a common bus that provides access to shared memory.
With respect to time, how are CPUs, devices competition for memory cycles, and I/O executed?
They are executed concurrently.
What is a device controller?
A controller that is in charge of a particular device type that has a local buffer.
From where and to where does the CPU move data?
The CPU moves data between the main memory and local buffers.
From where to where does the I/O occur?
I/O occurs between the device to the local buffer of the controller.
How do device controllers inform the CPU that it has finished its operation?
The device controller informs the CPU that it has finished its operation by causing an interrupt.
How do interrupts work?
Interrupt transfers control the interrupt service routine through the interrupt vector, which contains the addresses of all the service routines.

The interrupt architecture must save the address of the interrupted instruction.

Incoming interrupts are disabled while another interrupt is are diabled while another interrupt is being processed to prevent a lost interrupt.
What is a trap?
A trap is a software-generated interrupt caused by either an error or a user request.
Are operating systems interrupt driven?
Yes, operating systems are interrupt driven.
How do operating systems handle interrupts?
The operating system preserves the state of the CPU by storing all registers, including the program counter. It then determines the type of interrupt and separates segments of code to determine what action should be taken per interrupt.
What are two ways to handle interrupts?
The two ways to handle interrupts are through polling or a vectored interrupt system.
What are two I/O methods?
Two common I/O methods are synchronous and asynchronous processing.
What is the synchronous I/O process?
With the synchronous I/O structure, control returns to the user program upon I/O completion. In fact, there is a wait instruction that idles the CPU until the next interrupt.
What is the asynchronous I/O process?
After the I/O starts, the control returns to the program without waiting for completion. Examples: system calls, device-status table
Describe the direct memory access structure.
This structure is used for high-speed I/O devices able to transmit information at close to memory speeds.
Device controller transfers blocks of data from buffer storage directly to main memory without CPU intervention.

Only one interrupt is generated per block, rather than the one interrupt per byte.
Describe computer storage structure
The storage structure consists of the main memory, second storage and magnetic disks. The disk is then divided into tracks, which are divided into sectors.
What is main memory?
Main memory is the only large storage media that the CPU can access directly.
What is secondary storage?
Second storage is the extension of main memory that provides large nonvolatile storage capacity.
What are magnetic disks?
They are rigid metal or glass platters covered with magnetic recording material that are divded into tracks and sectors. Interaction between the magnetic disks and the computer are governed by the disk controller.
In order of top to bottom, what is the storage hierarchy order?
1. Registers
2. Cache
3. Main memory
4. Electronic disk
5. Magnetic disk
6. Optical disk
7. Magnetic tapes
How is the storage hierarchy organized?
The storage hierarchy is organized in terms of speed, cost, and volatility.
What is caching?
Caching is copying information into a faster storage system. Main memory can be viewed as a last cache for secondary storage.
How does caching work?
The cache is checked first. Only if the information is not in the cache is it taken from elsewhere, cached, and then used.
What makes caching difficult?
The cache is smaller than the storage being cached. Therefore, you need to deal with the size and how to replace items in the cache.

Also, since multiple copies of data exist, one must be sure that the CPU always has the most recent value.
What are the three architecture groups?
1. Single-processor systems
2. Multiprocessor systems
3. Clustered systems
What are some advantages of multiprocessor systems?
1. Increased throughput
2. Economy of scale
3. Increased reliability
What are some features of clustered systems?
1. Linked via LAN
2. Provide high availability
3. High-performance computing (parallelization)
4. Distributed Lock Manager (DLM)
What is multiprogramming and why is it needed?
Multiprogramming organizes jobs so that the CPU always has one to execute. This is because a single user cannot keep CPU and I/O devices busy at all times. A subset of the total jobs in the system is kept in memory and what is run is chosen by job scheduling. When the system is waiting on one job, it switched to another.
What is timesharing?
Timesharing, or multitasking is a logical extension in which the CPU switches jobs so frequently that users can interact with each job while it is running, creating interactive computing.
What are some prerequisites for timesharing?
1. Near instantaneous response time
2. Scheduling
3. Processes
4. Swapping.
5. Virtual memory
What is an advantage of virtual memory?
Virtual memory allows execution of processes not completely in memory.
What are the two modes used in dual mode operation?
User mode and kernel mode.
How does one tell the difference between user and kernel mode?
The hardware provides a mode bit to tell when the system is running user or kernel code. Some instructions are privileged
How do you change between kernel and user mode?
There's a system call that changes the mode bit to indicate kernel mode, and the recall resets it to user mode.

There is also a timer to prevent any infinite loops or resource hogging.
What is the difference between a program and a process?
A program is a passive entity. A process is an active entity,
What resources does a process need?
CPU, memory, I/O, files, initialization data
What is required on process termination?
Freeing of any reusable resources
How many program counters exist per process?
There is one program counter per thread. Hence, single-threaded processes have one program counter