Week 2 Flashcards

1
Q

What is the dual mode of operation

A

The dual mode operations is a software in the operating systems used to protect the operating systems from illegal users.
This is accomplished by designating some of the system instruction as privileged instructions

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

Example of privileged instruction

A

Command to switch to user mode.
monitoring I/O,
controlling timers
handling interruptions

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

Modes of operating system

A

User mode
Kernel mode

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

What is the mode bit of the user mode and kernel mode

A

user mode: 1
kernel mode : 0

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

Describe user mode

A

DMAIR

Definition: User mode is a restricted mode, which the application programs are executing and starts.

Modes: User mode is considered as the slave mode or the restricted mode

Address space: In user mode, a process gets its own address space.

Interruption: In user mode, if an interrupt occurs, only one process fails.

Restrictions: In user mode, there are restrictions to access kernel programs. Cannot access them directly.

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

Describe Kernel Mode

A

DMAIR

Definition: Kernel mode is the privileged mode which the computer enters when accessing hardware resources. It is the core of the OS and has complete control over everything in the system.

Modes: Kernel mode is the system mode, master mode or the privileged mode.

Address space: In user mode, a process gets a single address space.

Interruptions: If an interrupt occurs, the whole operating system might fail.

Restrictions: Both user programs and kernel program can access.

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

What is system call

A

System call is executed when a user process becomes a kernel process

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

What are the function of a kernel

A

Access computer resource: It acts as a bridge between user and the resources of the system.

Resource management: It is the duty of a kernel to efficiently share the resources between various process

Memory management: It is the job of the kernel to allocate and deallocate memory space for every each process.

Device management: The peripheral devices connected in the system are used by the processes. So, the allocation of these device is managed by the kernel.

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

Mention Kernel Design approaches

A

Monolithic kernels
Microkernels
Hybrid kernels
Nanokernels
Exokernels
Mulitkernels

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

Describe Monolithic kernel

A

An operating system architecture where the entire operating system is working in kernel space.

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

Features of monolithic systems

A

Simple structure:
Works for smaller task:
Communication between components:
Fast operating system:

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

Advantages of monolithic kernel

A

The execution of the monolithic kernel is quite fast as the services such as memory management are implemented under the same address space

  1. A process runs completely in a single address space
  2. It is a static single binary file.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Disadvantages of monlithic kernel

A

If any service fails in the monolithic kernel, it leads to failure of the entire system.

The entire OS needs to be modified by the user to add any new service.

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

Describe microkernel

A

This is a software or code which contains the required minimum amount of functions, data and features to implement an operating system. it only contain the core functionalities of the system.

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

The minimum functionalites are:

A

Memory management
Processor scheduling
Inter-process communication

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

Advanatages of microkernel

A

The architecture is small and isolated therefore can function better.
Are secure
Expansion of the system is more accessible.
Fewer system crashes

17
Q

Disadvantages of micro kernel

A

Providing services in a microkernel systems are expensive .
The performance of a micro kernel can be indifferent and may lead to some problems

18
Q

What is hybrid kernel

A

Hybrid kernel is a kernel architecture based on a combination of microkernel and monolithic kernel architecture used in computing operating systems.

Combines SPEED and SIMPLER

19
Q

Advantages of hybrid kernels

A

No reboot required for testing
Fast development time for drivers

20
Q

Disadvantages of hybrid kernels

A

Unable to load modules at runtime

21
Q

What is nano kernel.

A

The whole code of the kernel is very small. It used to describe a kernel that supports a nanosecond clock resolutions

22
Q

Disadvantage of nano kernel

A

Used less due to being similar to micro kernel

23
Q

What is a Exokernel

A

This is designed to seperate resource protection from management to facilitate application-specific customization.

24
Q

Advantages of exokernel

A

Improved performance of applications
Easier development
More efficient use of hardware resources.

25
Q

Disadvantages of exokernel

A

Reduced consistency
Complex design of exokernel interfaces.