COMP 225 - TEST 1

0.0(0)
studied byStudied by 2 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/197

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

198 Terms

1
New cards

User Mode

a mode that provides an interface between an application and the OS, and only has access to hardware resources through the code running in kernel mode.

2
New cards

Top Down View

provide abstractions to application programs

3
New cards

Bottom Up View

Manage pieces of a complex system, orderly and controlled allocation of these resources

4
New cards

Resource Management Goals

Keep track if which programs are using which resources, mediate conflicting, requests from different programs and users

5
New cards

Time sharing

allocation of CPU to a program for short period, reallocate CPU to other program for short period

6
New cards

Space sharing

store parts of several programs in memory

7
New cards

Different generations of operating systems

First Generation (1945-55) vacuum tubes
Second Generation (1955-65) transistors and batch systems
Third Generation (1965-1980) ICS and Mulitprogramming
Fourth generation (1980-present) personal computer
Fifth Generation (1990-present) mobile computers

8
New cards

Programming in First Generation

Done by wiring up electrical circuits by connecting thousands of cables to plugholes to control machines basic functions, vacuum tubes used as switches (turned on or off in a circuit)

9
New cards

Batch System

a type of system developed for the earliest computers that used punched cards or tape for input, which were entered in a "batch"

10
New cards

Spooling

Simultaneous Peripheral Operation On-Line, reads jobs from cards onto disk when brought in.

11
New cards

Transistors

invented by Bell Laboratories in 1947, these tiny pieces of technology, which receive and amplify radio signals, make portable radios possible

12
New cards

MULTICS

Multiplexed Information and Computing Service

13
New cards

Minicomputers

type of computer that is designed to serve multiple users and process significant amounts of data; larger than a microcomputer, but smaller than a mainframe

14
New cards

UNIX

An operating system originally conceived in 1969 by Ken Thompson and Dennis Ritchie of AT&T's Bell Labs. In 1974, the UNIX code was rewritten in the standard programming language C. Today there are various commercial versions of UNIX.

15
New cards

Linux

an open-source version of the UNIX operating system

16
New cards

Processors

1. Fetches instructions from memory
2. Decodes the instruction
3. Executes instruction
Cycles until program finishes

17
New cards

Registers

Fast accessing storage inside the CPU
- no delay accessing any data
- least amount of space

18
New cards

Special Registers

-Program Counter (Address of next instruction)
-Stack Pointer (Address of top of stack)
- PSW (Program Status Word) various control bits

19
New cards

Multithreaded Chips

More transistors
-greater parallelism
-more cache
-deeper pipelines
-switch between threads in nanoseconds

20
New cards

Multicore Chips

-Each core has its own independent cpu
- allows for true parallelism

21
New cards

Memory Hierarchy

knowt flashcard image
22
New cards

Cache Memory

a type of high-speed memory that a processor can access more rapidly than main memory
- main memory is divided into cache lines

23
New cards

L1 Cache

-inside CPU
-typically 16KB

24
New cards

L2 Cache

- inside CPU
-holds several megabytes
-takes one of two clock cycles to fetch

25
New cards

L3

- outside CPU on mother board
- feeds L2
- faster than main memory

26
New cards

Caching System Issues

- When to put a new item into the cache.
- Which cache lines to put the new item in.
- Which item to remove from the cache when a slot is needed
- Where to put a new evicted item in the larger memory

27
New cards

Main Memory

stores data and information and is usually volatile; data written and read in same amount of time regardless of location

28
New cards

ROM

Read Only Memory- Permanent instructions that cannot be changed.
- non-volatile
- contains bootstrap loader to start PC
- fast, inexpensive

29
New cards

EEPROM

Electronically Erasable Programmable Read Only Memory
- can be erased and rewritten per bytes
- non-volatile

30
New cards

Flash Memory

a type of EEPROM
- can be erased and rewritten in larger chunks

31
New cards

CMOS

complementary metal-oxide semiconductor
- volatile
-holds current time and date

32
New cards

Disks

a memory device consisting of a flat disk covered with a magnetic coating on which information is stored
- 1000 times slower than RAM
- Metal platters rotate at 7200 RPM
- Mechanical arm pivots over platters
- reading and writing

33
New cards

Solid State Disks

- Stores data in flash memory
- Less capacity than hard drives

34
New cards

Virtual Memory

- Possible to run programs larger than physical memory of computer
- Brings in the idea of caching
- Carried out by Memory Management Unit (part of CPU)

35
New cards

Controller

chip or set of chips that physically controls the device
- accepts command from operating system
-offers interface to operating system.

36
New cards

Device Driver

software gives commands and accepts responses, and interacts with controller.

37
New cards

3 Ways Driver is loaded

- Relink kernel with new driver, reboot
- Make entry into OS file telling OS to find driver and load when booted
- OS Loads driver, no reboot needed

38
New cards

Steps in I/O

- User make call for I/O
- Driver takes over
- Polls device to see when completed
- When completed driver deals with data
- Operating system returns control to user
- BUSY WAITING

39
New cards

Interrupts

device signals when complete

40
New cards

Buses

Communication system that transfers data between components inside a computer.

41
New cards

PCIe

- dedicated point to point connection
- serial bus architecture

42
New cards

DMI

Bus that connects hub of legacy devices to CPU
fast enough for:
-hard drive
- USB
- Ethernet
- legacy devices

43
New cards

Plug and Play

technology that allows a hardware component to be attached to a computer so that it is automatically configured by the operating system, without user intervention

44
New cards

BIOS (Basic Input/Output System)

-contains low level I/O software
-detects how much ram is installed
-detects I/O devices installed and operating
-new devices are configured
-determines boot device (usually hard disc)
-operating system read in and started
-devices drivers loaded into kernel

45
New cards

Mainframe Operating Systems

Room size computers
offers 3 kinds of server
-batch system-process without user interrupt
-transaction process - handles large numbers
-time sharing - allows multiple remote users

--specialized operating system used to run Mainframe

46
New cards

Server Operating Systems

serve multiple users at once
allowing sharing or resources
-FreeBSD
-LINUX
-Database

47
New cards

Kernel Mode

- operating system can execute every instruction
- operating system can use every hardware feature

48
New cards

Operating System

system software that acts as a "go-between", allowing computer hardware and other software to communicate with each other, provides programmers with set of abstractions

49
New cards

Multiplexing

sharing resources by time or space

50
New cards

Multiprocessor Operating Systems

Multiple CPUs in one system
-Parallel computers
-multi-computers
-multiprocessors

51
New cards

Personal Computer Operating System

provide good support to one user

52
New cards

Embedded Operating Systems

A specialized OS that runs in various electronic devices
Very small, normally fits on a single chip
All software installed in ROM
Examples: GPS devices, ATMs, sensors, microwave ovens, etc.

53
New cards

Sensor-Node Operating Systems

-Networks of tiny computers
-Run on batteries - short lived
-Connect to base via radio transmission

54
New cards

Real-Time Operating Systems

requiring minimal user interaction, guaranteeing certain response times for particular computing tasks

55
New cards

Hard Real-time

task must be serviced by its deadline

56
New cards

Soft Real TIme

Missing a dealine is acceptable

57
New cards

Process

A program in execution

58
New cards

Address space

a memory location from 0 to some max, a set of addresses that a process can use to address memory

59
New cards

Process as container

reads and writes from to address space

60
New cards

Process Table

to keep track of all the processes, the scheduler maintains a block of information in main memory

61
New cards

Child Process

A process that was started by another process (parent process).

62
New cards

Pros of Address Space

-Multiple programs in memory at the same time
-Needs protection from other programs

63
New cards

Files

data stored in a container

64
New cards

Root Directory

the top of the file management structure

65
New cards

File Mounting

Allows user to specify path names to external storage medium

66
New cards

Special Files

makes i/o devices look like regular files so regular system calls can be used to read/write to them

67
New cards

Pipe

Pseudofile that connects two processes

68
New cards

process table

During multiplexing running process are suspended, it must be in the same state when restarted and must be saved

69
New cards

Child Process

a process created by another process

70
New cards

Address Space

multiple programs in memory at same time, done in hardware

71
New cards

virtual memory

Space on a hard disk or other storage device that simulates random access memory.

72
New cards

files

data stored in a container, grouped by directories, system calls exist to read and remove files

73
New cards

file mounting

allows user to specify path names to external storage medium

74
New cards

Metric Unit nano (n):

10^-9

75
New cards

Metric unit- Milli

10^-3

76
New cards

Metric Unit Micro

10^-6

77
New cards

Metric Unit Kilo

10^3

78
New cards

Metric Unit Mega

10^6

79
New cards

Metric Unit Giga

10^9

80
New cards

Metric Unit Tera

10^12

81
New cards

process creation 4 principal events

1. system initialization2. execution of a process creation system call by a running process3. a user request to create a new process4. initiation of a batch job

82
New cards

operating systems 2 main functions

providing abstractions to user programs and managing the computer's programs

83
New cards

system calls

is like making a special kind of procedure call, only system calls enter the kernel and procedure calls do not

84
New cards

Linux "ls" command

list files and directories

85
New cards

linux "cd" command

change directory

86
New cards

linux "cp file1 file2"

copy file1 and call it file2

87
New cards

linux "mv file1 file2" command

move or rename file1 to file2

88
New cards

linux "touch <name>" command

create an empty file

89
New cards

linux "rm file"

remove a file

90
New cards

linux "cat file"

display a file

91
New cards

linux "less file"

display a file a page at a time

92
New cards

linux "file <filename>"

find out what type of file it is = text, zip, jpg, etc.

93
New cards

linux "mkdir" command

make a directory

94
New cards

linux "rmdir" command

remove a directory

95
New cards

linux "sudo su-" command

switches over to the root account

96
New cards

linux "history" command

show all commands typed into terminal. saves up to 1000 commands in most linux versions

97
New cards

multiprogramming

CPU switches from process to process -> sequential processes; illusion of parallelism

98
New cards

running

using the CPU at that instant

99
New cards

ready

runnable; temporarily stopped to let another process run

100
New cards

blocked

unable to run until some external event happens