Kernel Flashcards

1
Q

What is the role of the kernel in an operating system?

A

The kernel provides the interface between software and hardware

The kernel acts as a bridge allowing communication between the hardware and software applications.

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

How can the kernel be conceptualized in relation to interrupts?

A

The kernel can be thought of as a set of interrupt service routines

These routines handle various types of interrupts generated by hardware and software.

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

What are interrupts?

A

Electrical signals generated by hardware that is connected to an interrupt controller

Interrupts signal the processor to stop its current activities and execute a specific routine.

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

What are traps in the context of the kernel?

A

Traps are handled the same as interrupts but trap signals are generated by software

This allows software to communicate with the kernel in a similar manner to hardware interrupts.

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

What does IRQ stand for?

A

Interrupt Request Lines

IRQs were originally designed as a single wire per peripheral device.

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

What happens when an interrupt occurs in relation to the processor?

A

An interrupt automatically switches the INTEL (or AMD) processor into a privileged mode

This allows the kernel to perform critical operations without restrictions.

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

What is the function of processor control in the kernel?

A

Creates the illusion that several processes are running at once

This is essential for multitasking in modern operating systems.

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

What does the kernel do when an interrupt occurs?

A

Saves the exact state of the running process

This state is restored when the process can run again, ensuring continuity.

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

What is the purpose of scheduling in the kernel?

A

Decides which process gets to run and which ones get to wait

This is crucial for managing CPU resources efficiently.

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

What are the two types of memory control in the kernel?

A

Kernel memory and user memory

This distinction helps in managing access and protection between different processes.

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

What is the difference between paged memory and real memory?

A

Paged memory allows for non-contiguous memory allocation, while real memory is the actual physical RAM

Paged memory enables more efficient use of memory resources.

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

What is swap space in the context of the kernel?

A

A designated area on disk used when physical memory is full

Swapping helps manage memory usage by temporarily transferring inactive processes to disk.

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

What does I/O control in the kernel manage?

A

Access to disks, keyboard, mouse, monitor, USB

I/O control is vital for facilitating communication between the user and the computer’s hardware.

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

Fill in the blank: The kernel handles _______ which are electrical signals generated by hardware.

A

interrupts

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

True or False: Traps are generated exclusively by hardware.

A

False

Traps are generated by software.

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