Virtualisation & Hypervisor Flashcards

1
Q

What is the main goal of an operating system in managing resources for processes?

A

The main job of an operating system is to present an idealized computer to every process, offering it every possible service while maximizing the use of available resources, even in the presence of competing processes with different requirements.

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

What are the two prominent aspects of virtualization in many operating systems?

A

The two prominent aspects of virtualization in many operating systems are virtual memory and time-sharing. Virtual memory allows any process to use almost any address at any time, while time-sharing enables the concurrent execution of multiple processes on physical processors.

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

What is the principle employed by operating systems in virtualizing resources?

A

Operating systems follow a principle similar to Harrods’ motto “Omnia Omnibus Ubique” (all things for all people, everywhere). They maintain the potential of many resources and organize the actual resources based on demand. Resources are allocated dynamically when needed.

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

Can you provide an example of resource virtualization in operating systems?

A

An example is memory virtualization, where a process can use any address it wants, but the actual memory allocation is done when the process accesses that address. Another example is printing, where output can be printed at any time, and the system queues the output until a free printer is available for allocation.

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

How can an operating system be described in terms of providing a virtual machine for application processes?

A

An operating system acts as a software layer that provides a virtual machine for application processes to run on. Each application process can operate as if it is alone on a machine with its own set of devices and memory. The operating system serves as the interface to the physical hardware.

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

What is the purpose of a hypervisor in the context of operating systems?

A

A hypervisor extends the concept of an operating system by adding another layer of software between the operating system and the hardware. This allows multiple operating systems to run concurrently on a single machine, similar to how multiple applications can run on a single operating system.

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

What are the advantages of using a hypervisor for running multiple operating systems on a single machine?

A

The advantages of using a hypervisor include the ability to support various software on one physical computer, easy portability of software when upgrading hardware, minimal reconfiguration requirements, cost savings on maintenance and electricity by consolidating applications onto one powerful machine, and the ability to run multiple applications concurrently using resources intermittently.

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

How are hypervisors classified into different types?

A

Hypervisors are classified into two types: Type 1 and Type 2. Type 1 hypervisors are adjacent to the hardware and provide a virtual machine environment for operating systems to run. Type 2 hypervisors run under a host operating system and operate as an application program, providing a virtual machine environment with some performance penalties and less flexibility in resource allocation.

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

What is the main difference between Type 1 and Type 2 hypervisors in terms of their location and hardware interaction?

A

The main difference is that Type 1 hypervisors are adjacent to the hardware and separate the physical computer from other software, while Type 2 hypervisors run under a host operating system. Type 1 hypervisors require hardware support and offer better performance by allowing applications to run directly on the hardware, while Type 2 hypervisors rely more on software emulation, resulting in performance penalties.

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