Virtual Machines

1839 Words4 Pages

(1)Virtual Machines The fundamental idea behind a virtual machine is to remove the hardware of a single computer and make it a self-contained operating environment that behaves as it is a separate computer. Essentially, the virtual machine is software that executes an application and isolates it from the actual operating system and hardware. CPU scheduling and virtual-memory techniques are used so that an operating system can create the illusion that a process has its own processor with its own (virtual) memory. The virtual machine provides the ability to share the same hardware yet run several different operating systems concurrently, as shown in Figure 2-11. Figure 2-11: Virtual machine concept A major difficulty with the virtual machine involves disk systems. For instance, the physical machine has two disk drives but wants to support five virtual machines. The physical machine is unable to allocate a disk drive to each virtual machine because the virtual machine software itself will need substantial disk space to provide virtual memory and spooling. To solve this dilemma, virtual drives that are identical in all respects except for size are provided. The system implements each virtual disk by allocating as many tracks on the physical disks as the virtual disk needs. Implementation of the virtual machine is difficult. A lot of work is required to provide an exact duplicate of the underlying machine, which has both the user mode and kernel mode. The virtual machine software can run in kernel mode since it is the operating system, where the virtual machine itself can only execute in user mode. In a virtual machine implementation, there must be a virtual user mode and a virtual kernel mode, both of which run in a physical user... ... middle of paper ... ... c. Process attributes, Memory allocation, System information, Communication, Transfer status information d. Send/Receive attributes, System information, Memory allocation, Device attributes, Information transfer 6. Operating system design goals and requirements are divided into two groups. What are these two groups? a. Kernel mode b. User c. System d. Supervisor mode 7. What is a microkernel? a. Operating system b. System call c. Smaller kernel d. Process 8. What is considered a suitable language for today's operating systems? a. Fortran b. C c. Visual Basic d. C++ 9. What are some advantages for using a virtual machine when developing an operating-system? a. Testing b. Implementation c. Debugging d. Control 10. What program loads the kernel when starting a computer? a. Read-only memory (ROM) b. Bootstrap c. Firmware d. System patch

Open Document