1,153 views
0 votes
0 votes
Q-1    The c.p.u is able to execute a process when the process is in which states?(more than option may be true)

(a) running

(b) ready

(c) waiting

(d) new

explanation??

3 Answers

Best answer
0 votes
0 votes

Here First thing is ...when process is Running then ultimately it is getting CPU cycles ...so CPU is executing the process ...now when the process is in READY State it indicate that , process is ready with all necessary arrengements and   acquired the necessary Resources ..required for execution..only thing is it needed CPU cycle/Attention..So CPU can run that process also...say for ex P1 and P2...

Now P1 is running ...so its state is RUNNING ..(CPU is executing it)  now P2 comes with high priority ...so CPU will execute P2 by doing Context Switch ...but before that P2 must be in READY State .

So answer should be Both Running and Ready ....

NOTE: say CPU is not able to run the Process that are in Ready state .."MULTIPROGRAMMING" Concept can never occure .. but it's possible..just because CPU is able to RUN process in ready state... 

selected by
0 votes
0 votes

Running,

If process is in new or waiting state first it will go to ready then running state will run process.

So ans will be running 

Related questions

0 votes
0 votes
1 answer
1
hem chandra joshi asked Dec 21, 2017
325 views
why we do indexing and tagging in cache ??
0 votes
0 votes
1 answer
4