Chapter 1 Flashcards

1
Q

What is an Operating System?

A

A program that acts as an intermediary between a user of a computer and the computer hardware.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Goals of Operating System?

A
  • Execute user programs and make solving user problems easier
  • Make the computer system convenient to use
  • Use the computer hardware in an efficient manner
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

4 Components of Computer System

A

Hardware
Operating System
Application Programs
Users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Operating System Definition

A

OS is a resource allocator

OS is a control program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Resource Allocator?

A

Manages all resources

Decides between conflicting requests for efficient and fair resource use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a control program?

A

Controls execution of programs to prevent errors and improper use of the computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Bootstrap Program?

A

Bootstrap program is loaded at power-up or reboot

  • Typically stored in ROM or EPROM, generally known as firmware
  • Initializes all aspects of system
  • Loads operating system kernel and start execution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Computer System Organization

A

Computer-System operation

  • One r more CPUs, device controllers connect through common bus providing access to shared memory
  • Concurrent execution of CPUs and devices competing for memory cycles
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Operating System Structure

A
  • Multiprogramming

- Timesharing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Multiprogramming?

A

Also known as Batch System needed for effiency

  • Single user cannot keep CPU and I/O devices busy at all times
  • A subset of total jobs in system is kept in memory
  • One job selected and run via job scheduling
  • When it has to wait, OS switches to another job
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Timesharing?

A

Known as Multitasking is logical extension in which CPU switches jobs so frequently that users can interact with each job while it is running, creating, interactive computing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Timesharing attributes?

A
  • Response time should be less than 1 second
  • Each user has at least one program executing in memory (process)
  • If several jobs ready to run at the same time (CPU scheduling)
  • If processes don’t fit in memory, swapping moves them in and out to run.
  • Virtual memory allows execution of processes not completely in memory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Operating-System Operations

A

Interrupt Driven (hardware and software)
Software Interrupt (exception or trap)
Dual-mode
Increasingly CPUs support multi-mode operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Dual-mode?

A

Dual-mode operation allows OS to protect itself and other system components

  • User mode and Kernel Mode
  • Mode bit provided by hardware
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Transition from User to Kernel Mode

A

Timer to prevent infinite loop / process hogging resources

  • Timer is set to interrupt the computer after some time period
  • Keep a counter that is decremented by the physical clock.
  • Operating system set the counter
  • When the counter zero generate an interrupt
  • Set up before scheduling process to regain control or terminate program that exceeds allotted time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Process Management & Synchronization

A

A process is a program in execution. It is a unit of work within the system, Program is a passive entity, process is an active entity.

Process needs resources to accomplish its task

  • CPU, memory, I/O, files
  • Initialization data

Process termination requires reclaim of any reusable resources