580 views
3 votes
3 votes
Consider a system using many-to-one pure user-level thread model in which Kernel is not aware of any user-level thread. Which of the following situations/states is/are possible for a process P with more than one user-level threads in above system?

 

A)P is in running state and no thread of P is in running state.

B)P is in block state and a thread of P is in running state.

C)P is in running state and more than one threads of P are in running state.

D)P is in ready state and a thread of P is in running state.

.

1 Answer

1 votes
1 votes
in user mode , if process P has more than one thread then from OS point of view it knows only about process P not of thread . so , if p is in block state then whole process goes to block state as we know kernel knows only about P.

if p is running then it may be possible that no thread run as may be in user mode the manager schedule the threads accordingly . and for option c more than one thread can be run in interleaved fashion ( if 1 cpu ) or parallely if more cpus available. and for option d if p is in ready state then again for OS it knows only p so process in ready state and it thread cant be in running state ..

No related questions found