Font size
WorksheetsLesson 2 - Operating System
Total questions: 76
Worksheet time: 40mins
Program that acts as an intermediary between a user of a computer and the computer hardware.
Operating System
Computer System
Interrupt
What are the 4 components of a Computer System?
Hardware
Operating System
Application Programs
Users
Bootstrap
Provides basic computing resources.
(Ex: CPU, memory, I/O devices)
Hardware
Operating System
Application Programs
Users
Controls and coordinates use of hardware among various applications and users.
Hardware
Operating System
Application Programs
Users
Define the ways in which the system resources are used to solve the computing problems of the users.
(Ex: word processors, compilers, web browsers, database systems, video games)
Hardware
Operating System
Application Programs
Users
People, machines, other computers
Hardware
Operating System
Application Programs
Users
Users want:
(NOTE: They don't care about resource utilization.)
Convenience
Ease of Use
Good Performance
Bad Compatibility
OS has a universally accepted definition.
True
False
The one program running at all times on the computer.
Kernel
Bootstrap
Interrupt
Is loaded at power-up or reboot.
Kernel
Bootstrap Program
Interrupt
Device controller informs CPU that it has finished its operation by causing an ________.
Kernel
Bootstrap Program
Interrupt
Interrupt transfers control to the interrupt service routine generally, through the ______________, which contains the addresses of all the service routines.
Interrupt
Interrupt Vector
Trap/Exception
Request to the OS to allow user to wait for I/O completion
System call
Device-status table
I/O Structure
Contains entry for each I/O device indicating its type, address, and state.
System Call
Device-status table
I/O Structure
Only large storage media that the CPU can access directly.
Main memory
Secondary storage
Hard disks
Extension of main memory that provides large nonvolatile storage capacity.
Main memory
Secondary storage
Hard disks
Solid-state disks
Rigid metal or glass platters covered with magnetic recording material.
Main memory
Secondary storage
Hard disks
Solid-state disks
Faster than hard disks, nonvolatile
Main memory
Secondary storage
Hard disks
Solid-state disks
Copying information into faster storage system; main memory can be viewed as a cache for secondary storage.
Caching
Device Driver
Storage Hierarchy
Provides uniform interface between controller and kernel
For each device controller to manage I/O.
Caching
Device Driver
Storage Hierarchy
Also known as parallel systems, tightly-coupled systems.
They are systems growing in use and importance.
Multiprocessors
Single processor
Like multiprocessor systems, but multiple systems working together.
Usually sharing storage via a storage-area network (SAN).
Provides a high-availability service which survives failures.
Clustered Systems
Parallel systems
Tightly-couple systems
Has one machine in hot-standby mode.
Asymmetric clustering
Symmetric clustering
Has multiple nodes running applications, monitoring each other.
Asymmetric clustering
Symmetric clustering
Organizes jobs (code and data) so CPU always has one to execute.
Multiprogramming
Multiprocessors
Multitasking
_____________ (multitasking) is logical extension in which CPU switches jobs so frequently that users can interact with each job while it is running, creating __________ computing.
Timesharing, Interactive
Multiprogramming, Interactive
Multiprocessors, Interactive
Response time should be _______.
<1 second
>1 second
1 ms
Each user has at least one program executing in memory called _______.
Process
Virtual memory
CPU
If several jobs ready to run at the same time, ____________ occurs.
CPU Scheduling
Swapping
Virtual memory
If processes don’t fit in memory, _________ moves them in and out to run.
CPU Scheduling
Swapping
Virtual memory
_________________ operation allows OS to protect itself and other system components.
Dual mode
User mode
Kernel mode
Mode bit
Provided by hardware
Provides ability to distinguish when system is running user code or kernel code.
Dual mode
User mode
Kernel mode
Mode bit
Mode bit = 1
User mode
Kernel mode
Mode bit = 0
User mode
Kernel mode
________ is a program in execution. It is a unit of work within the system.
Process
Operating System
Activity
________ is a passive entity, _________ is an active entity.
Program, Process
Process, Program
_______________ determines what is in memory and when.
Process management
Memory management
Storage management
Mass-Storage management
OS provides uniform, logical view of _________________.
Information storage
Memory storage
Mass storage
Multiprocessor environment must provide _____________ in hardware such that all CPUs have the most recent value in their cache.
Cache coherency
Caching
Recent caches
Any mechanism for controlling access of processes or users to resources defined by the OS.
Protection
Security
Defense of the system against internal and external attacks.
Protection
Security
Provide web access to internal systems.
Portals
Network computers
Wireless networks
Firewall
Are like Web terminals.
Portals
Network computers
Wireless networks
Firewalls
Mobile computers interconnect via __________________.
Portals
Network computers
Wireless networks
Firewalls
Networking becoming ubiquitous – even home systems use _______ to protect home computers from Internet attacks.
Portals
Networking computers
Wireless networks
Firewalls
In Mobile, leaders are ________ and ___________.
Apple iOS
Google Android
Blackberry
Nokia Symbian
Collection of separate, possibly heterogeneous, systems networked together.
Distributed computing
Network
TCP/IP
____________ is a communications path, TCP/IP most common.
Network
Distributed computing
LAN
WAN
4 Types of Network
Local Area Network (LAN)
Wide Area Network (WAN)
Metropolitan Area Network (MAN)
Personal Area Network (PAN)
_______________ provides features between systems across network.
Network Operating System
LAN
WAN
PAN
Many systems now ______, responding to requests generated by _____.
Servers, clients
Clients, servers
Allows operating systems to run applications within other OSes.
Virtualization
Emulation
Interpretation
Used when source CPU type different from target type (i.e. PowerPC to Intel x86).
Virtualization
Emulation
Interpretation
When computer language not compiled to native code.
Virtualization
Emulation
Interpretation
OS natively compiled for CPU, running guest OSes, also natively compiled.
Virtualization
VMM (Virtual Machine Manager)
Emulation
Provides virtualization services.
Virtualization
VMM (Virtual Machine Manager)
Emulation
OS is a _____________.
Manages all resources
Decides between conflicting requests for efficient and fair resource use
Resource allocator
Control program
Resource locator
Control resource
OS is a _______________.
Controls execution of programs to prevent errors and improper use of the computer.
Resource allocator
Control program
Resource locator
Control resource
A _____ or ______ is a software-generated interrupt caused either by an error or a user request.
Interrupt
Interrupt Vector
Trap/Exception
Two types of interrupt:
Polling
Vectored
Pulling
Victored
Disk surface is logically divided into ______, which are subdivided into _____.
tracks, sectors
sectors, tracks
trucks, sections
sections, trucks
The _____________ determines the logical interaction between the device and the computer.
disk controller
device controller
drive controller
Storage systems organized in hierarchy of:
Speed
Cost
Volatility
Cache Size
Registers -> ________ -> ___________ -> solid-state disk -> hard disk -> optical disk -> _____________
cache, main memory, magnetic tapes
main memory, magnetic tapes, cache
cache, magnetic tapes, main memory
magnetic tapes, main memory, cache
Which of these are advantages of multiprocessors?
Increased throughput
Economy of scale
Increased reliability
Economy of power
Allows execution of processes not completely in memory.
CPU Scheduling
Swapping
Virtual memory
Single-threaded process has one ____________ specifying location of next instruction to execute.
program counter
program address
program locator
Files usually organized into directories.
Access control on most systems to determine who can access what.
File-System management
Storage management
Operating System
Tertiary storage includes _________, _________.
optical storage
magnetic tape
hard disks
solid-state disks
Write-once, read-many-times.
WORM
RW
Allows user to change to effective ID with more rights.
Privilege escalation
Group ID
ID Rights
Provides an interface to client to request services (i.e., database)
Compute-server system
File-server system
Provides interface for clients to store and retrieve files.
Compute-server system
File-server system
An operating system is not interrupt driven.
True
False
Bootstrap program is typically stored in ROM or EPROM, generally known as ____________.
firmware
primary storage
main memory
ram
Bootstrap program initializes all aspect of systems (Performs ____)
Power-on self test.
Checks computer hardware to make sure all are working correctly.
POST
POSE
POSS
POTS
