Chapter 2 Flashcards

1
Q

What is single user system

A

Such a system that allows single to operate at a time. It means there can be multiple users but only one user can operate it at a time.

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

What are batch systems

A

Batch processing is the execution of a series of programs (“jobs”) on a computer without manual intervention. Jobs are set up so they can be run to completion without human interaction.

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

What are multi programmed system

A

Several jobs are kept in main memory at the same time, and the CPU is multiplexed among them.

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

What is time sharing system

A

It is interactive, multi-user, multi-process system. It has online file system. It is real time system. Linux is also its example.

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

What are 2 types of real time system

A
  1. Hard real time system (When given input, output must be produce)
  2. Soft real time system (e.g. virtual reality, sign boards) (When given input, output should be given but if there is not output then there should not be catastrophic failure)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where we keep data in real time system

A

in ROM or RAM. Not on disk

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

What are interrupts

A

An event generated by a device in a computer to get attention of the CPU

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

What is trap

A

An event generated by the CPU itself as it executes a program. CPU send message for example in some alarming situation like division by zero.

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

What is signal

A

An event generated by a user

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

In what situation System saves CPU state

Trap Or Interrupt

A

Interrupt

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

Does signal also called soft interrupt

A

Yes

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

What is ISR and TSR

A

In case of interrupt or trap, the CPU invokes a piece of code in the OS to service it, known as interrupt service routine (ISR) or trap service routine (TSR).

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

What are 3 possible actions in case of signal

A

1- Default action as defined by OS
2- Ignore signal
3- Programmed specified action

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

What is dual mode operation

A

There are 2 modes
1. user mode: executes on behalf of a user
2. monitor mode: execution done on behalf of OS.
When fault occurs CPU switches to monitor mode.

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

What are privileged instructions

A

Privileged instructions can only run in monitor mode by default. Sometimes CPU allows those instructions to run which are not allowed to execute in user mode which causes problem.

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

How mode switches

A

By system call

17
Q

Does I/O instructions are privileged instructions

A

Yes