Boot, Kernel and Interrupt Controller Flashcards

1
Q

What is the booting process of a computer?

A

The booting process of a computer involves the processes between a reset or power-up and normal operation. It includes initializing and starting the operating system as part of the boot process.

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

What is the first stage in a typical boot sequence?

A

The first stage of a boot sequence starts from a preset address in a small, non-volatile ROM. It assumes very little, with undefined RAM and limited knowledge about files. It may perform system tests, check available RAM, and have basic abilities to read/execute code from a backing store.

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

What is the purpose of the Master Boot Record (MBR) in an x86 PC?

A

The Master Boot Record (MBR) is located in the first sector of a disk in an x86 PC. It is read and executed during the boot process if it appears valid. The MBR is a short record (512 bytes) and is responsible for loading and executing more sophisticated boot loaders or operating systems.

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

What is the role of the second stage boot loader in the booting process?

A

The second stage boot loader performs more extensive system checks and is capable of loading an operating system. It may give users a choice of what to do next before proceeding.

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

What happens in the final stage of the booting process?

A

In the final stage, the boot process loads and starts the operating system(s). It may conduct additional system tests, such as checking hardware configurations, loading device drivers, and initializing hardware. Finally, it may run an application like a shell or window system.

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

What is the kernel in an operating system?

A

The kernel is the core of an operating system, residing in protected space. It includes components such as the process manager, scheduler, interprocess communication, exception handlers, and resource managers. It is isolated from the user space and connected through system calls.

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

Is the “kernel” the same as the “operating system”?

A

It depends on the design philosophy. The kernel is responsible for implementing mechanisms, while the operating system may encompass both mechanisms and policies. For example, a scheduling mechanism (mechanism) and a scheduling policy (policy) can be distinguished within the kernel.

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

What is a monolithic kernel?

A

A monolithic kernel includes everything in the kernel itself, running in privileged mode with direct access to the operating system’s memory. It contains all routines and functionalities of the operating system.

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

What are the disadvantages of a monolithic kernel?

A

The disadvantages of a monolithic kernel include code size “bloating,” making management difficult, decreased reliability as a bug in one area can crash the whole system, and limited portability when adapting code to new systems or architectures.

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

What is a microkernel?

A

A microkernel separates the kernel into privileged handlers and user-mode processes for functionalities such as the filing system, graphical user interface (GUI), and device drivers. It keeps the sensitive code smaller, improving reliability and allowing easier modification and maintenance.

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

What are the disadvantages of a microkernel?

A

The disadvantages of a microkernel include slower performance due to increased overhead from communications and extra system calls, as well as increased complexity that can lead to potential problems.

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

What is a hybrid kernel?

A

A hybrid kernel is a compromise between a microkernel and a monolithic kernel. It is primarily a microkernel with some functions placed inside the privileged boundary for efficiency purposes.

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

What is an interrupt controller?

A

An interrupt controller is a hardware device that manages interrupts in a computer system. It receives input signals from various I/O devices and determines which interrupt request to prioritize and pass on to the processor.

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

Why is interrupt prioritization important?

A

Interrupts may be requesting services simultaneously, and the processor can only handle one interrupt routine at a time. Prioritization ensures that more urgent interrupts are serviced first, taking into account the interrupt latency and the needs of real-time environments.

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

How does an interrupt controller handle multiple input signals?

A

An interrupt controller has programmable enable bits for each input signal, allowing the operating system to selectively enable or disable specific interrupts. Inputs are then assigned priorities, typically through programmable priority fields associated with each signal.

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

What interrupts are considered at any given time?

A

Only interrupts that are active and enabled are considered by the interrupt controller. It examines the highest priority, active, and enabled interrupt to determine if it should be forwarded to the processor for handling.

17
Q

What happens when an interrupt is accepted by the processor?

A

When the processor accepts an interrupt, it reads the interrupt vector, which provides the address of the corresponding interrupt service routine (ISR). Simultaneously, the priority of the interrupt controller is raised, and the previous priority is stacked to allow resumption after the new ISR is completed.