LQ1 - Operating Systems - Introduction

studied byStudied by 1 person
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions
Get a hint
Hint

operating system

1 / 114

flashcard set

Earn XP

Description and Tags

115 Terms

1

operating system

program that acts as an intermediary between a computer user and computer hardware

New cards
2
  1. User

  2. Application Programs

  3. Operating System

  4. Computer Hardware

4 components of a computer system

New cards
3

kernel

The one program that runs at all times on the computer

New cards
4

system program

a type of program that is associated with the operating system, but is not part of the kernel

New cards
5

application program

a type of program not associated with the operating system

New cards
6

middleware

a set of software frameworks that provide services to application developers

New cards
7

operating system

it is a resource allocator and control program that efficiently uses HW and manages user program execution

New cards
8

shared computers

they must keep all users happy

New cards
9

dedicated systems

although they have dedicated resources, they still frequently use shared resources from servers

New cards
10

mobile devices

are resource poor, but optimized for usability and battery life

New cards
11

device controllers

connects through common bus to provide access to shared memory

New cards
12

true

true or false: I/O devices and CPU can execute concurrently?

New cards
13

operating system device driver

is found in each device controller type, in order to manage it

New cards
14

CPU

moves data from/to main memory to/from local buffers

New cards
15

local buffer

Each device controller has a ____ ____

New cards
16

interrupt

transfers control to the interrupt service routine

New cards
17

interrupt vector

It contains the addresses of all the service routines. It is the typical way to transfer control to the interrupt service routine.

New cards
18

trap or exception

a software-generated interrupt caused either by an error or a user request

New cards
19

interrupt

an operating system is _____ driven

New cards
20

it stores the registers and the program counter

how does the operating preserve the state of the CPU?

New cards
21

interrupt handling

determines which type of interrupt has occurred. In this process, separate segments of code determine what action should be take for each type of interrupt.

New cards
22
  1. CPU: device driver initiates I/O

  2. I/O controller: initiates the I/O

  3. I/O controller: input ready, output complete, or error generates interrupt signal

  4. CPU: receives interrupt, transfer control to interrupt handler

  5. CPU: interrupt handler processes data, returns from interrupt

  6. CPU: resumes processing of interrupted task

Enumerate the interrupt-drive I/O Cycle in the correct order

New cards
23
  1. After I/O starts, control returns to user program only upon I/O completion

  2. After I/O starts, control returns to user program without waiting for I/O completion

What are the two methods for handling i/o?

New cards
24

system call

request to the OS to allow user to wait for I/O completion

New cards
25

device-status table

contains entry for each i/o device, indicating its type, address, and state

New cards
26

I/O device table

OS indexes into __ ___ __ to determine device status and to modify table entry to include interrupt

New cards
27

main memory

only large storage media that the CPU can access directly

New cards
28

main memory

is typically volatile and random access (in the form of dynamic random-access memory [DRAM]).

New cards
29

secondary storage

extension of main memory that provides large nonvolatile storage capacity

New cards
30

hard disk drives (HDD)

rigid metal or glass platters covered with magnetic recording material

New cards
31
  1. tracks

  2. sectors

disk surface is logically divided into ___, which are subdivided into ___

New cards
32

non-volatile memory (NVM) devices

faster than hard disks

New cards
33
  1. registers

  2. cache

  3. main memory

  4. nonvolatile memory

  5. hard-disk drives

  6. optical disk

  7. magnetic tapes

rank this according to the storage device hierarchy

  • cache

  • hard-disk drives

  • magnetic tapes

  • main memory

  • nonvolatile memory

  • optical disk

  • registers

New cards
34

caching

copying information into faster storage system

New cards
35

device driver

for each device controller to manage I/O. It provides uniform interface between controller and kernel.

New cards
36

direct memory access structure

used for high-speed I/O devices to be able to transmit information at close to memory speed

New cards
37

device controller

transfers blocks of data from buffer storage directly to main memory without CPU intervention

New cards
38

direct memory access structure

under this structure, only one interrupt is generated per block, rather than the one interrupt per byte

New cards
39

bootstrap program

simple code to initialize the system, load the kernel

New cards
40

system daemons

services provided outside of the kernel

New cards
41

operating system

starts the system daemons

New cards
42
  • software error

  • system call

types of software interrupt

New cards
43

system call

request for operating system service

New cards
44

multiprogramming

organizes jobs (code and data) so CPU always has one to execute

New cards
45

job scheduling

In multiprogramming, how is the one job selected ran?

New cards
46

interactive computing

is created when CPU switches jobs frequently to the point that users can interact with each job while it is running

New cards
47

dual mode (user mode and kernel mode) operation

allows OS to protect itself and other system components

New cards
48

mode bit

provides the ability to distinguish when system is running user code or kernel code

New cards
49

System call changes mode to kernel, return from call resets it to user

How to prevent user from explicitly setting the mode bit to kernel?

New cards
50

privileged

only executable in kernel mode

New cards
51

timer

prevents infinite loop (or process hogging resources)

New cards
52

process

a program in execution; a unit of work within the system.

New cards
53
  1. passive entity

  2. active entity

program is a ____ _____, whereas process is an ____ ____

New cards
54

false

true or false: process termination does not require the reclaim of any reusable resources

New cards
55

program counter

single threaded process has one ____ ____ that specifies the location of the next instruction to execute

New cards
56

multi-threaded process

has one program counter per thread

New cards
57

process management

the operating system is responsible for the following activities in connection with ____ ____:

  1. Creating and deleting both user and system processes

  2. Suspending and resuming processes

  3. Providing mechanisms for process synchronization

  4. Providing mechanisms for process communication

  5. Providing mechanisms for deadlock handling

New cards
58

true

true or false: to execute a program, all (or part) of the instructions must be in memory

New cards
59

memory management

determines what is in memory and when

New cards
60

memory management activities

includes:

  • keeping track of which parts of memory are currently being used and by whom

  • deciding which processes (or parts thereof) and data to move into and out of memory

  • allocating and de-allocating memory space as needed

New cards
61

operating system

provides uniform, logical view of information storage

New cards
62

file

abstracts physical properties to local storage unit

New cards
63

access control

allows for the determination of who can access what

New cards
64

OS activities

include:

  • creating and deleting files and directories

  • primitives to manipulate files and directories

  • mapping files onto secondary storage

  • backup files onto stable (non-volatile) storage media

New cards
65

caching

information in use copide from slower to faster storage temporarily

New cards
66

false

true or false: must not be careful to use most recent value, no matter where it is stored in the storage hierarchy

New cards
67

cache coherency

multiprocessor environment must provide ____ ____ in hardware such that all CPUs have the most recent value in their cache

New cards
68

I/O subsystem

is responsible for

  • memory management of I/O

  • general device-driver interface

  • drivers for specific hardware devices

New cards
69

protection

any mechanism for controlling access of processes or users to resources defined by the OS

New cards
70

security

defense of the system against internal and external attacks

New cards
71

user identities

include name and associated number, one per user

New cards
72

group identifier

allows set of users to be defined and controls managed, then also associated with each process and file

New cards
73

privilege escalation

allows user to change to effective id with more rights

New cards
74

virtualization

allows operating systems to run applications within other OSes

New cards
75

emulation

used when source CPU type different from target type. It is generally the slowest method.

New cards
76

interpretation

is used when computer language not compiled to native code

New cards
77

virtualization

OS natively compiled for CPU, running guest OSes which is also natively compiled

New cards
78

virtual machine manager

provides virtualization services

New cards
79

distributed systems

collection of separate, possibly heterogeneous, system networked together

New cards
80

network

is a communications path

New cards
81

TCP/IP

the most common network type

New cards
82
  • Local Area Network (LAN)

  • Wide Area Network (WAN)

  • Metropolitan Area Network (MAN)

  • Personal Area Network (PAN)

types of networks:

New cards
83

network operating system

provides features between systems across networks, wherein there is an illusion of a single system

New cards
84

false

most systems use a single general-purpose processor

true or false: most systems use multiple general-purpose processors

New cards
85

multiprocessor system

also known as parallel systems and tightly-coupled systems, they are systems which are growing in use and importance because of their increased throughput, economy of scale, and increased reliability.

New cards
86

asymmetric multiprocessing

a multiprocessor system with each processor assigned a specific task

New cards
87

symmetric multiprocessing

a multiprocessor system with each processor performing all tasks

New cards
88

clustered systems

  • similar to multiprocessor systems, but with multiple systems working together.

  • it provides high-availability service which survives failures

  • it usually shares storage using storage-area network (SAN)

New cards
89

asymmetric clustering

a clustered system where there is one machine in hot-standby mode

New cards
90

symmetric clustering

has multiple nodes running applications, monitoring each other

New cards
91

traditional computing environment

  • stand-alone general purpose machines

  • it is blurred as most systems interconnect with others through the internet

New cards
92

portals

provide web access to internal systems

New cards
93

network computers (thin clients)

are like web terminals

New cards
94

wireless networks

mobile computers interconnect via ___ ____

New cards
95

mobile computing environment

  • has OS features like GPS, gyroscope, and allows for augmented reality.

  • IEEE 802.11 wireless or cellular data networks for connectivity

New cards
96

client server computing

dumb terminals supplanted by smart PCs, wherein system servers as a response to client requests

New cards
97

compute-server system

provides an interface to client to request services

New cards
98

file-server system

provides interface for clients to store and retrieve files

New cards
99

peer-to-peer

  • another model of distributed system.

  • it does not distinguish between clients and servers, instead all nodes are considered peers.

New cards
100

discovery protocol

nodes broadcast request for service and respond to requests for service via ___ ___

New cards
robot