Lecture 1&2: Introduction and Computer System Structure Flashcards

1
Q

Define operating system

A

a program that acts as intermediary between user and computer hardware

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

4 components of computer system

A
  1. hardware - cpu, memory, I/O devices
  2. operating system
  3. application programs - web browser, compiler
  4. users - people, machine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

handheld computer

A
  • has poor resources
  • optimized usability
  • optimized battery life
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

2 main uses of operating system

A
  1. resource manager
    - manage all resources and decide between conflicting request
  2. program controller
    - control program execution to prevent errors and improper uses of computer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

function of bootstrap program

A
  • initialize all aspects of system
  • load OS kernel
  • start execution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how computer system operation works

A

One or more CPU and device controller is connected through common bus providing access to shared memory
- each device controller has a local buffer
- CPU move data from/to main memory to/from local buffer
- I/O is from device to local buffer of controller
- device controller informs CPU finishing operation by causing interrupt

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

what is trap

A

software-generated interrupt caused by user request or an error

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

how to prevent lost interrupt

A

incoming interrupt is disabled while another interrupt is being processed

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

2 types of interrupt

A
  • pooling
  • vectored-interrupt system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is system call

A
  • request to OS to allow user wait for I/O completion
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how direct memory access structure works

A
  • transmit information at close to memory speed
  • device controller transfer block of data directly from buffer storage to main memory
  • without CPU intervention

** only one interrupt is generated per block

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

3 types of storage

A
  • main storage (volatile)
  • secondary storage (non-volatile)
  • magnetic disks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

storage system heirachy

A
  • speed
  • cost
  • volatility
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is caching

A

transfer information into faster storage system

**main memory can be considered as cache of secondary storage

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

advantages of multiprocessors

A
  • increased reliability
  • increased throughput
  • economy of scale
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

2 types of multiprocessing

A
  • asymmetric
  • symmetric
15
Q

symmetric clustering

A

multiple nodes running applications, monitoring each other

16
Q

asymmetric clustering

A

has one machine that in hot stand-by mode

17
Q

define clustered system

A

like multiprocessor system, but multiple system working together
- usually share data using SAN (storage area network)

18
Q

How multiprogramming works

A
  • organized job so that CPU always has one to execute
  • subset of total jobs are stored in memory
  • one job is selected and run via job scheduling
19
Q

define multitasking (time-sharing)

A

logical extension which CPU switches job frequently allowing users to interact with each job while it is running, creating interactive computing

20
Q

time-sharing

A
  • response time should be less than 1 second
  • CPU scheduling allow several jobs run at a same time
  • process: at least one program is executing in memory
  • swapping when the process do not fit in memory
  • virtual memory allow execution of process not only in memory
21
Q

what is dual mode

A

user mode and kernel mode

22
Q

function of system call

A

change mode to kernel

23
define process
- program in execution ** program = passive entity, process = active entity
24
process require resources
- CPU - memory - I/O - files - initialized data
25
differentiate single-thread and multi-threaded
single-threaded: - has one program counter specifying location of the next instruction - execute instruction sequentially, one at a time multi-threaded: - has one program counter per thread
26
process management activities
- creating and deleting - suspending and resuming - synchronization - communication - deadlock handling
27
memory management activities
- decide which process to move in and our of the memory - keep track of the memory currently used - allocate and deallocate memory space
28
file management activities
- creating and deleting files and directories - manipulate - mapping files to secondary storage - backup files
29
mass-storage management activities
- free space management - storage allocation - disk scheduling
30
responsibility of I/O subsystem
- memory management of I/O - general device-driver interface - driver for specific hardware devices
31
differentiate protection and security
protection: control access of process and user to resources security: defense against internal and external attack
32
3 types of network
- Wide Area Network (WAN) - Local Area Network (LAN) - Metropolitan Area Network (MAN)
33
3 special purpose systems
- handheld - multimedia - real-time
34
3 types of computing environment
1. server-client computing 2. peer-to-peer computing 3. web-based computing
35
transition from user to kernel mode
timer is used to prevent infinite loop/process hogging resources - set interrupt after specific period - OS decrement counter - generate interrupt when counter=0 - set before scheduling to regain control or terminate program that exceed allotted time
36
special purpose system
- real-time embedded system - handheld system - multimedia system