Answer:
A lookaside buffer translation (TLB) is a memory cache that reduces the time it takes to access a user memory place. TLB includes the most lately used page table entries.
TLB is used to overcome the issue of sizes at the time of paging. Page Table Entry (PTE) is used for framing the memory ,but it uses two references one for finding the frame number
and the other for the address specified by frame number.
<u>Formula for finding effective memory access time-</u>
Effective Memory Access Time = (TLB access_time+Memory Access Time)*hit ratio + (TLB access_time+2*Memory Access Time)*(miss ratio)
Given in question,
Hit ratio = 0.90
Memory Access Time = 150ns
TLB access time= 5ns
Effective Memory Access Time = (TLB access_time+Memory Access Time)*hit ratio + (TLB access_time+2*Memory Access Time)*(miss ratio)
=(5+150) * 0.90 + (5+2*150)*(1-0.90)
=155 * 0.90 + (305*0.1)
=139.5 + 30.5
= 170ns
Answer:
a. 255.255.255.0 (class C)
b. 255.255.255.224
Explanation:
Here, we want to give the implied subnet mask of the given classful IPV4 address
We proceed as follows;
Given IPv4 address: 200.200.200.200
Classes
Class A : 0.0.0.0 to 127.255.255.255
Class B: 128.0.0.0 to 191.255.255.255
Class C: 192.0.0.0 to 223.255.255.255
Class D: 224.0.0.0 to 239.255.255.255
so 200.200.200.200 belongs to Class C and it's subnet mask is 255.255.255.0
In CIDR(Classless Inter Domain Routing)
subnet /27 bits means 27 1s and 5 0s. so subnet
i.e 11111111.11111111.11111111.11100000 which in dotted decimal format is 255.255.255.224 .
Answer:
// C program to find sum and average of 10 elements.
#include <stdio.h>
// main function
int main(void) {
// array
double arr[10];
// variables
double average,sum=0;
int i;
// ask to enter 10 elements of the array
printf("Enter 10 elements of the array:");
for(i=0;i<10;i++)
{
// read elements of the array
scanf("%lf", &arr[i]);
// calculate the sum of elements
sum=sum+arr[i];
}
// fint the average
average=sum/10;
// print sum
printf("Sum of 10 elements of the array is:%f ",sum);
// print average
printf("\nAverage of 10 elements of the array is:%f ",average);
return 0;
}
Explanation:
Create an array of size 10.Then read 10 values from user and store them into array.Find the sum of 10 elements of the array and assign it to variable "sum". Find the average by dividing sum with 10.Print the sum and average.
Output:
Enter 10 elements of the array:3 2 4 5 1 4 8 9 12 10
Sum of 10 elements of the array is:58.000000
Average of 10 elements of the array is:5.800000
Customer-centric businesses generate greater profits, increased employee engagement, and more satisfied customers. Customer-centric governments and nonprofits create the resiliency, sustainability, and alignment needed to fulfill their mission.