Persistent
Company
Category
If there are n proceses and each process waits p time in waiting state then cpu utilization is-:
Read Solution (Total 3)
-
- n^p as there are n processes with p waiting time for each
- 10 years agoHelpfull: Yes(15) No(2)
- if t is total time ...then n*p is the wasted time so utilization will be (t-np)*100/t.
- 8 years agoHelpfull: Yes(8) No(2)
- 1-(p^n)
ref: https://gateoverflow.in/155181/ugcnet-dec2008-ii-21 - 5 years agoHelpfull: Yes(0) No(0)
Persistent Other Question
#include
int a[5] ={1,2,3,4,5},i,j=2,b;
func(int j,int *a)
{
j=j+1;
a=a+j;
b= b+2;
}
int main()
{
for (i =0;i<5;i++ )
func(j,a[i]);
for (i =0;i<5;i++ )
printf("%d",a[i]);
return 0;
}
when you want to use
-printf() scanf()
-log() abs() pow()
-clrscr() getch() terminate()
and your program restrictions are such that you have to use only 1 header file
Is it Possible......if yes which header file will you use....
How you will do it?