Hardware and Operating systems Flashcards

1
Q

4 types of instruction

A
  • Processor-memory,
  • Processor-I/O
  • data processing
  • control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Types of interrupts

A

Program - Generated by some condition that is a result from an instruction execution

Timer - Generated by a timer within the processor that ca be programmed to trigger at regular interval or after a certain amount of time has passed

I/O - Generated by an I/O controller to signal completion of an operation or some other condition

Hardware failure - Generated by a failure in the hardware

Note: Can have sequential interrupts or nested interrupts (interrupts within interrupts)

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

Instruction Categories:

A

• Processor-memory: Instructions for transfer data between processor and memory.

• Processor-I/O: Instructions for
transferring data between
processor and peripheral devices through an I/O module.

• Data processing: Instructions for doing arithmetic or logical
operations on data.

• Control: Instructions that alter the sequence of execution.

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

What is the prupose of cache memory?

A
  • Small and very fast memory between CPU and main memory.
  • Invisible to the OS (just works)
  • Can have several levels.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why do we need an operating system at all? (Or do we really?)

A

The Stallings book describe three reasons for having an operating system
• Convenience
-The user interacts with the OS rather than hardware
• Efficiency
-Scheduler, control of memory and access of I/O resources
• Ability to evolve
-Must support new hardware, services and updates.

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

What is a process?

A

A process is an entity that can be assigned to and

executed by a processor.

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

What does a process consist of?

A

• The program code that defines what the process does.
• Basically the source code you write.
• Shared between all processes that execute the same
program.

• The set of data associated with the process.
• Each process has their own set of data.
• Stored in a process control block data structure.
• OS has to manage the data structures of the different
processes.

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