3. In 1 paragraph for each
(a). What is a Virtual Machine and how does it differ from a
physical machine?
(b). Describe the differences between multi-programming and
multi-tasking?
(c). What is a context switch? (describe the mechanism, the reasons
for a switch, and what is switched)
I have written only one paragraph as you asked, If you need more details with explanations, please let me know.
Virtual Machine vs Physical machine:
Physical machine has all functionalities like Desktop PC but it
has more features like Multiple NICs and Redundant power
supplies, large in size. Virtual machines are
simulation of physical machine.
Physical machines are more expensive than VMs.
Backing up physical machine due to failure is a
nightmare. Scaling up physical machine is
expensive. Since physical machines are dedicated, more
powerful than VMs.
Every virtual machine has its own virtual
hardware. So the guest operating system loaded on a VM is
only aware of its hardware configuration and not the physical
server’s. It means that the operation system installed on a
VM is no longer tied up to certain hardware and
you can easily move virtual machines from one
physical server to another or even to another data center. The
benefits of virtualization are obvious:
Instead of having just one application per server, you can
now run several guest Operating Systems and a handful of
applications with the same physical hardware. With
physcial servers, configuration should be done by our IT team. When
there is a configuration problem, we may need to hire extra expert.
But with VMs there are many best vendors outside who provides
complete support. Even though VMs are cheaper, multi
tasking, you are not the one who has control over VMs.
Multiprogramming vs Multitasking:
Let's say there are two programs currently active in the system. But our system can serve only one programa at a time. Program A has to wait for some IO operations. In the mean time, Systemc an serve programB. But it won't. It will waste simply CPU cycles. To avoid this, multiporgramming has been introduced. While program A is waiting for IO, program B can be served. So ultimate aim of multiprogramming is keeping CPU busy as much as possible.
Multiprogramming and multitasking are referring the same things. At any point cpu can execute only one programs while others are waiting for their turn. But there is a minor difference. Multiprogramming refers the whole applications whereas multitasking refers tasks. One application may have multiple tasks. Task can also refer to a thread of execution when one process is divided into sub tasks. Each smaller task does not hijack the CPU until it finishes like in the older multiprogramming but rather a fair share amount of the CPU time.
Context switch : what, why, how.
what: Switching from one task to another.
Reason for switch: When the current executing
tasks has to wait for some IO operations, OS will do context-switch
to maximize the utilization of CPU.
What is switched and the mechanism: Saves the
register values of the current process. It explains the state of
the current process. Load the newly selected process' register
values. New process resumes from the place where it stops. It is
possible because fo program counter.
Context switch can happen only in kernel mode.
3. In 1 paragraph for each (a). What is a Virtual Machine and how does it...
4. Consider virtual functions. a) How does C++ allow some functions to be used in a program even before tions are defined? Describe the mechanism that make this possible the func and give examples b) How does C++ implement virtual functions? c) What are the two main disadvantages of using virtual functions?
Suppose a machine does not use a multi-level page table. Suppose further, that the system uses a 54-bit virtual address and a 30-bit physical address. If the page size is 16K, how many entries should you have in the page table? You may express the answer as a power of 2. (1) Is the decision to have a single level page table a reasonable one? Explain (2) If you are to use the inverted page table in this system, what...
Question 1 Which of the following is true about virtual addresses? Virtual addresses for the same physical memory location may differ from process to process Virtual addresses are synonymous with physical addresses Virtual addresses always refer to locations on disk Virtual addresses for the same physical memory location may differ from thread to thread Question 2 How do pages and frames relate to each other? A page holds words while a frame holds pictures A frame is a larger structure...
What is the armature of an electrical machine? How does the armature of a DC machine differ from the armature of a synchronous machine?
What is the Consumer Price Index (CPI) and how is it determined each month? How does the Bureau of Labor Statistics (BLS) calculate the rate of inflation from one year to the next? What effect does inflation have on the purchasing power of a dollar? How does it explain differences between nominal and real interest rates? How does deflation differ from inflation? (Answer in your own words)
A system implements a paged virtual address space for each process using a one-level page table. The maximum size of virtual address space is 8MB. The page table for the running process includes the following valid entries (the -> notation indicates that a virtual page maps to the givenpage frame, that is, it is located in that frame): Virtual page 2 -> Page frame4 Virtual page 4 -> Page frame 9 Virtual page 1 -> Page frame2 Virtual page 3...
4. Assume that we have a machine with the following memory specifications: Virtual addresses are 32 bits wide Physical addresses are 26 bits wide . Page size is 16 Kbytes 4/A) How many pages are in the virtual memory space? 4/B) How many page frames are in the physical memory space? 4/C) If each page table entry consists of a physical frame number, 1 present/absent bit Answers Pages .Page Frames and 1 dirty/clean bit (which shows if the page has...
IN C-PROGRAMMING: What is Structured Programming; what is machine and assembly coding; what is pseudo coding? What do the following do: compiler, preprocessor, return 0, { }? Describe data types and what distinguishes each; how would one combine data types? Explain functions and what are they for? Explain: scanf (gets, fgets, getchar, fgetchar), printf( puts, fputs, putchar, fpetchar) What do the following mean: strlen, strcmp, strcat, strcpy? What does fopen and fclose mean? Explain the difference between stdin and file. What if your file...
Suppose you have a byte-addressable virtual address memory system with 8 virtual pages of 64 bytes each, and 4-page frames. Assuming the following page table, answer the questions below: Page #Frame #Valid Bit0111312-03014215-06-07-0a) How many bits are in a virtual address? b) How many bits are in a physical address? c) What physical address corresponds to the following virtual addresses (if the address causes a page fault, simply indicate this is the case)? 1) Ox00 2) 0x44 3) OxC2 4) 0x80
1) In a Windows clustering in a virtual environment, what are the 3 types of cluster configurations? ( 1 point) 2) Why would you use clustering? ( 1 point) 3) Define "role" ,"priviledge"and "permission" in the ESXI/vCenter Server security model. ( .5 points each) 4) Name and Describe the 3 vSphere storage presentation models ( .5 points each) 5) How does vSphere use shared storage? ( 1 point)