a) when process is scheduled to run after some execution
b) when process is using the CPU
c) when process is unable to run until some task has been completed
d) none of the above
Answer: a
Explanation: Ready state of the process means process has all necessary resources which are required for execution of that process when CPU is allocated. Process is ready for execution but waiting for the CPU to be allocated.
Related Posts
What will be the output of the following C code?
#include < stdio.h >
int x = 5;
void main()
{
int x = 3;
printf(“%d”, x);
{
x = 4;
}
printf(“%d”, x);
}What will be the output of the following C code?
#include < stdio.h >
int x;
void main()
{
printf(“%d”, x);
}What will be the output of the following C code?
#include < stdio.h >
void main()
{
m();
printf(“%d”, x);
}
int x;
void m()
{
x = 4;
}What will be the output of the following C code?
#include < stdio.h >
int *m();
void main()
{
int *k = m();
printf(“hello “);
printf(“%d”, k[0]);
}
int *m()
{
int a[2] = {5, 8};
return a;
}What will be the output of the following C code?
#include < stdio.h >
int *m()
{
int *p = 5;
return p;
}
void main()
{
int *k = m();
printf(“%d”, k);
}What will be the output of the following C code?
#include < stdio.h >
int m()
{
printf(“hello”);
}
void main()
{
int k = m();
printf(“%d”, k);
}What is the problem in the following C declarations?
int func(int);
double func(int);
int func(float);
Join The Discussion