The operating system Flashcards

(36 cards)

1
Q

What is an operating system (OS)?

A

Software that controls hardware and software resources

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

Why were operating systems developed?

A

To simplify software development by including common code needed to run computers

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

What are the main functions of an OS?

A

Processor management

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

What is a process?

A

A program that is currently running on a computer.

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

How does the OS manage multiple processes?

A

Using a scheduler that allocates CPU time to each process based on a scheduling algorithm.

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

What happens when the OS switches processes?

A

The current process is paused

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

How does the OS manage processing in a multiprocessor system?

A

It distributes processes across different cores and shares processing time.

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

What is a scheduling algorithm?

A

A set of rules that determines the order and time each process gets on the CPU.

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

What is the role of the memory manager?

A

To track memory usage

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

How does the OS keep track of memory?

A

By mapping memory to addresses and tracking which addresses are allocated to each process.

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

What does the OS do with secondary storage devices?

A

Manages access to files/programs

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

How does the OS support file management?

A

By offering a user-friendly system to create

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

How does the OS handle I/O devices?

A

It manages requests

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

What happens when an I/O device sends a critical request?

A

The OS may interrupt the current process to handle the I/O request immediately.

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

How does the OS provide security?

A

By using permissions and passwords to control access to resources.

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

What is the user interface provided by the OS?

A

The way users interact with the computer and receive information

17
Q

How is system software different from application software?

A

System software manages hardware and provides a platform for applications

18
Q

What are examples of system software?

A

Operating systems

19
Q

Can hardware function without software?

A

No. Hardware needs software to provide instructions and control.

20
Q

How does the OS simplify hardware-software interaction?

A

It hides hardware complexity and provides standardized access for applications.

21
Q

What determines the choice of an operating system for a task?

A

The functions that should be prioritised and the efficiency of operation for that specific task.

22
Q

What is a distributed operating system?

A

An OS that coordinates multiple networked computers (nodes) to work together as a single system.

23
Q

Why are distributed operating systems useful?

A

They are ideal for processor-intensive tasks that require more power than a single computer can provide.

24
Q

What is a multitasking operating system?

A

An OS that switches between tasks quickly

25
What is a multi-user operating system?
An OS that allows multiple users to access the same system simultaneously while managing resources to avoid interference.
26
What is a real-time operating system?
An OS designed to process data and respond within a guaranteed time frame
27
What factors influence how processing time is allocated to tasks?
Time of request
28
Why can't standard processing time allocation be used for all tasks?
Some tasks require immediate response (e.g.
29
What is the role of interrupts in time-sensitive processing?
They allow the processor to suspend its current task and handle more urgent processes immediately.
30
What is an interrupt?
A signal sent to the processor requesting immediate attention.
31
Give examples of when an interrupt might occur.
- A hardware device sends data - A task is completed - A software process needs OS services - A hardware failure occurs - A timer expires
32
What is an interrupt service routine (ISR)?
A mini-program that runs in response to a specific interrupt and processes the request.
33
How does the OS handle a keypress using an ISR?
It detects the key via polling
34
What happens to the CPU when it receives an interrupt?
1. Finishes current instruction 2. Saves register contents and program counter 3. Identifies and runs the appropriate ISR 4. Puts lower-priority interrupts on hold 5. Executes ISR 6. Restores saved register values 7. Resumes execution of original process
35
What is the fetch-decode-execute cycle?
The normal cycle in which the CPU fetches
36
How does an interrupt affect this cycle?
It temporarily halts the cycle