CSC 4103- Midterm Flashcards (CH.1)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/62

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:06 PM on 10/11/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

63 Terms

1
New cards

What are the four components of a computer system

Hardware, Operating System, Application programs, Users

2
New cards

Hardware

provides basic computing resources, like CPU, memory, I/O devices, graphics card, and storage

3
New cards

Operating Systems

A program that acts as a “middle-man” between a user and the computer hardware. Manages hardware resources and provides services to apps

4
New cards

Application programs

Defines how the system resources are used to solve the computing problems of the users (includes, web browsers, office apps, video games, etc basically any app)

5
New cards

Users

Whoever utilizes the computer (people, machines, other computers)

6
New cards

What is the hierarchy of a computer system?

hardware → OS → application programs → users

7
New cards

Goals of an operating system

  1. Execute user program and make solving problem easy

  2. Using the computer hardware in efficient manner

  3. Make the computer system convenient to use


8
New cards

Device Controller

An electronic hardware component (like a chip or circuit board) that acts as a translator and bridge between a computer’s OS and a physical peripheral device like a mouse or keyboard

9
New cards

Resource allocator (OS)

An operating system that mamnges all resources and decides between conflicting request based on effieceint and fair resource use (tradeoff)

10
New cards

Control Program (OS)

AN OS that controls the execution of programs to prevent errors (reliability) and improper use (security) of the computer. It also controls and manages operations of hardware I/O devices

11
New cards

OS kernel

The one program running at all times on the computer

12
New cards

Computer- system organization

one or more CPUs and/or device controllers connected through a common bus providing access to a shared memory

13
New cards

The bootstrap program

Loaded at power-up/startup or reboot. AKA firmware (software stored in a chip that can be updated) that is typically stored in ROM or EPROM. It initializes all aspects of the system from hardware to software, loads OS kernel and starts execution

14
New cards

Interrupts

A signal sent to the CPU by hardware or software that temporaily pauses the currently running program so the operating system can handle an event without continuous polling (constant monitoring).

15
New cards

Interrupt handling

  1. The OS preserves the state of the CPU by storing registers and the program counter

  2. interrupt transfers control to the interrupt service routine through the interrupt vector

  3. Int. arch. must save the addr. of the interrupted instruction

  4. After completing the int. the state and return addr. are restored


16
New cards

Why is disabling interrupts a priviledged instruction?

Because allowing user programs to disable interrupts could prevent the OS from responding to events and regaining control of the CPU

17
New cards

Synchronous I/O

Control returns to the user program (or other OS code) only upon I/O completion and wait instruction idles the CPU until the next interrupt

18
New cards

Asynchronous I/O

Control returns to to user program without waiting for I/O completion

19
New cards

Storage Structure

  1. Main memory

  2. Secondary storage

    1. hard disks

    2. solid-state disks


20
New cards

Main memory

only large storage media that the CPU can access directly (RAM, volatile, byte-addressable, fast, small)


21
New cards

Secondary storage

Extension of main memory that provides large storage capacity (block access, nonvolatile, slow, big)

can be either hard or solid-state disks

22
New cards

Hard Disks

rigid metal or glass platters covered with magnetic recording material. The disk controller determines the logical interaction between the device and the computer

23
New cards

Solid-state disks

faster than hard disks and are nonvolatile

24
New cards

Caching

Stores copies of frequently accessed data so the CPU doesn’t have to retrieve them from slower memory. If the requested data is already in the cache it is called a hit if not it is called a miss and must be retrieved from a lower storage

25
New cards

Registers

Tiny, extremely fast storage locations inside the CPU that hold values the CPU is actively working with. it temporaily holds data, instructions, or memory addresses the processor is actively using

26
New cards

Mulitprocessor systems

AKA parallel systems or tightly coupled systems. Its more than one CPU or processor in close communcation

27
New cards

Advantages of a parallel system

  1. increased throughput

  2. economy of scale

  3. increased reliability


28
New cards

Symmetric multiprocessing (SMP)

Each processor runs an identical copy of the OS

29
New cards

Asymmetric multiprocessing

Each processor is assigned a specfic task; master processor schedules and allocates work to slave processors

30
New cards

Clustered Systems

Multiple systems (nodes) working together usually sharing storage via a storage-area network (SAN), provides a hih-availibilty service which survives failures. Some are high-performance computing (HPC) and application must be written to use parallelization

31
New cards

Asymmetric clustering

has one machiene in hot-standby mode

32
New cards

Symmetric clustering

has mulitple nodes running applications and monitoring each other

33
New cards

Operating system structure

  1. multiprogramming

  2. timesharing (multitasking)


34
New cards

multiprogramming

Multiple programs are loaded into the memory at the same time (jobs) so that the CPU can execute them concurrently. When one program waits for the I/O the OS switches the CPU to another ready program

35
New cards

Timesharing

(AKA multitasking) CPU switches jobs so frequently that users can interact with each job while its running (interactive computing)

36
New cards

Different modes of an OS

  1. Dual-mode

  2. User mode

  3. kernel mode


37
New cards

Dual mode

The safety system in a computer’s processor that let’s it switch between two different levels of software priviledges and protects the OS and hardware by preventing user programs from executing priviledged instructions.

38
New cards

User mode

Restricted running state where regular apps (EX. web browsers, games, etc) execute. The program cannot directly touch the computer’s hardware or crash the whole system. Can only request hardware realted operations through system calls

39
New cards

Kernel mode

A fully privledged running state where the core of the OS lives and runs. SOftware has complete unrestricted access to the hardware, memory, and CPU instructions.

40
New cards

Process

a program in execution, an active entity

41
New cards

What is the OS in connection with the process management responsible for

  1. Creating and deleting both user an system process

  2. suspending and resuming processes

  3. providing mechanisms for process synching

  4. providing mechanisms for process communication

  5. providing mechanisms for deadlock handling


42
New cards

Communation models

  1. Message passing model: info is exchanged through interprocess communication facility provided by OS

  2. Shared memory model: processes use map memory sys. calls to gain access to regions of memory owned by other processes


43
New cards

Memory managment

Determines what is in memory and when optimizing CPU utilization and computer responses to users.

  1. tracks which part of memory are currently being used and by whom

  2. decides which process and data get to move into and out of memory

  3. allocating and deallocating memory space as needed


44
New cards

Direct Memory Access (DMA)

Allows hardware devices to transfer data directly to and from the computers main memory RAM without making the CPU handle every single byte

45
New cards

Cache consistency

In order to maintain consistency data is stored in more than one level, the copy of the specfic data appears in several places (Ex. nagnetic diskm main memory, in the cache, and internal registers)

46
New cards

Cache coherency

Update of a copy of data need to be in all caches where the data resides

47
New cards

I/O subsystem

The part of the OS that mangees communication between computer and it’s I/O devices (Ex. keyboards, disks, printers, etc)

responsible for:

  1. memory management for I/O

    1. Buffering

    2. caching

    3. spooling

  2. general device-driver interface

  3. drivers for specfic hardware devices


48
New cards

Buffering

storing data temporaily while it is being transferred

49
New cards

Spooling

the overlapping of output of one job with input of other jobs

50
New cards

Protection

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

51
New cards

Security

Defense of the system against internal and external attacks

52
New cards

Computing Environments

The combination of hardware, software, networks, and services that provide the framework and interface for computer programs to run and users to interact with the system

53
New cards

Distributed computing

A collection of seperate, possibly heterogenous, systems networked together (EX. LAN, WAN, MAN, etc)

54
New cards

Network operating system

provides features between systems across a network

55
New cards
<p>Client-server</p>

Client-server

Clients processes request services or resources and the server processes fulfill those request by providing data, hardware access, or computation

also uses Computer-server system (provides interface to client to request services) and file-server system (interface for clients to store and retrieve files)

56
New cards
<p>Peer-to-peer</p>

Peer-to-peer

All nodes are considered peers (no distinguishing between clients and servers) and can either act as a client, server, or both

57
New cards

Virutalization

Allows operating systems to run apps in other OSes through Emulation, and dividing a single physical computer into isolated virtual machienes (VMs)

58
New cards
<p>Cloud computing</p>

Cloud computing

Delivers computing, storage, even apps as a service across a network or a “cloud”

  1. public cloud (available via internet to anyone willing to pay)

  2. private cloud (ran by a company for the company)

  3. Hybrid cloud (includes both oublic and private cloud components)


59
New cards

Software as a service (SaaS)

one or more apps available via the internet

60
New cards

Platform as a service (PaaS)

Software stack ready for apps use via the internet

61
New cards

Infrastructure as a service (IaaS)

servers or storage available over the internet

62
New cards

Open-source operating systems

OSes made available in an source-code format rather than just binary (closed-source) and was the direct counter to the copy protection and digital rights managment (DRM) movement

63
New cards

Timer

Used to prevent infinite loops therby protecting the CPU