Explanation:
A computer is an electronic device that can store and proceda
Answer: Data hazards are the factor behind the damage/problem created in the data of the CPU . There are three types of data hazards which are as follows:-
By considering two element "A" and "B"
- RAW(Read after write)- If the element A tries to read the value before the element B has written it then element A will receive the previous value which is accordingly incorrect .
- WAR(Write after read)-Element B write a value for element A which not read by it.So, it incorrectly gets a new destination assigned.
- WAW(Write after write)-Element B tries to write the value for the element A before element A writes it, thus creating a hazard.
Answer:
In opp friend function is a function that gives the same access to private and protected data. It is declared in class that is granting access.
Explanation:
#include<iostream.h>
using namespace std;
class Sum
{
int a, b, add;
public:
void input()
{
cout << "Enter the value of l and m:";
cin >> l>>m; taking input from users
}
friend void add(sum &t);
void display()
{
cout << "The sum is :" << z;
}
};
void add(sum & p)
{
p.add = p.a + p.b;
}
int main()
{
sum p1;
p1.input();
add(p1);
p1.display();
return false;
if(display==5)
{
return true; //true is returned if sum is equal to 5
}
else //if they are not the same
{
return false;
}
}
Answer:
In computing, a virtual machine (VM) is an emulation( an emulator is hardware or software that enables one computer system (called the host) to behave like another computer system (called the guest))of a computer system. Virtual machines are based on computer architectures and provide functionality of a physical computer. Their features may involve specialized hardware, software, or a combination of both.
There are different kinds of virtual machines, each with different functions:
1.System virtual machines (also termed full virtualization VMs) provide a substitute for a real machine. They provide what is needed to execute entire operating systems.
2.Process virtual machines are designed to execute computer programs in a platform-independent environment.
paging vs segmentation
What is the difference between paging and segmentation? Paging is used to get a large linear address space without having to buy more physical memory. Segmentation allows programs and data to be broken up into logically independent address spaces and to aid sharing and protection
Explanation:
hope this was helpful
Answer:
16 pounds on week 5 for exponetial growth
.
Explanation: