OS Flashcards

1
Q

What is an Operating System?

A

An OS is a program or collection of programs that provides an easier, more convenient way for users to interact with hardware; it also manages hardware resources efficiently.

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

What are the main objectives of an Operating System?

A

Convenience for users, efficient management of resources, and ability to evolve with new requirements and technologies.

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

From the system’s perspective, what are the key roles of an OS?

A

Acts as a resource manager and a control system between user programs and hardware, preventing conflicts and misuse.

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

What components make up a computer system?

A

Hardware, Operating System, Application Programs, and Users.

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

What major services does an OS provide?

A

Program execution, I/O device access, file management, system access, error detection, and accounting/resource usage tracking.

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

Why was the need for an OS first realized?

A

Because even the fastest human operators were much slower than computers, leading to inefficient use of expensive hardware.

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

What was the role of a Monitor program in early batch systems?

A

It controlled the sequence of job execution, managed job control, interpreted batch languages, and always resided in memory.

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

What sacrifices were made when introducing simple batch systems?

A

Some processor time and main memory had to be devoted to the monitor program (overhead).

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

In what way does Multiprogramming improve CPU utilization?

A

While one job waits for I/O, the CPU can execute another job, reducing CPU idle time significantly.

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

Explain the concept of Time-Sharing Systems.

A

Multiple users interact with the computer at the same time, with the OS quickly switching between programs, giving the illusion of concurrency.

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

What happens during the booting process of a computer?

A

The firmware/bootloader initializes the system (CPU registers, memory), and loads the operating system kernel into RAM.

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

Why is firmware like BIOS stored in ROM or EEPROM?

A

Because these memories are non-volatile and protected, ensuring that crucial boot instructions persist even when power is off.

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

What are the four main functions of BIOS?

A
  1. POST (Power-On Self Test), 2. Bootstrap Loader, 3. Driver Initialization, 4. CMOS Setup.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are interrupts, and why are they essential?

A

Interrupts are signals that cause the CPU to temporarily stop its current task and execute a service routine; they enable multitasking and responsive system behavior.

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

What happens during an interrupt handling routine?

A

The CPU saves its current state, jumps to the interrupt service routine (ISR), completes the ISR, and then resumes the interrupted task.

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

What is the difference between system calls and normal function calls?

A

System calls are requests made by programs to the OS to access privileged services; they pass through an API and transition from user mode to kernel mode.

17
Q

What is Dual Mode operation, and why is it critical?

A

It separates user mode and kernel mode execution to protect the OS and hardware from user errors or malicious programs.

18
Q

What is the purpose of a system call interface (API wrapper)?

A

It allows user programs to safely access OS services without directly executing privileged instructions, enhancing portability and safety.

19
Q

What are the five main types of system calls?

A
  1. Process control, 2. File management, 3. Device management, 4. Information maintenance, 5. Communication.
20
Q

What is virtual memory, and why was it introduced?

A

Virtual memory abstracts main memory to appear larger than it physically is, enabling programs larger than RAM to run efficiently.