1,703 views
5 votes
5 votes
Assume that process A has 3 user level threads and process B has 4 kernel-level threads. Consider while process A is running in CPU, process B is waiting in ready queue. If one of the thread in A is blocked then find status of A threads and B threads?

A. All A threads are blocked and all B threads are blocked.

B. All A threads are blocked and B threads are not blocked.

C. All B threads are blocked and A threads are not blocked.

D. None.

2 Answers

6 votes
6 votes
Blocking is one main problem of user level thread.

'here if one thread is blocked then all of them in it get  blocked

but in kernel level thread case is not the same

A is in user level

so A is blocked whereas B is not

B is the answer
edited by
Answer:

Related questions

10 votes
10 votes
3 answers
1
Akriti sood asked Dec 20, 2016
2,426 views
can anyone tell what are different activities that are performed in kernel modeuser modehow to change frm user mode to kernel mode and vice-versa,,
1 votes
1 votes
1 answer
2
Na462 asked Jul 12, 2018
1,645 views
According to me Answer is C, because Multithreading i.e. User application threads cannot use different processors because processor see all the thread of user process as ...
1 votes
1 votes
4 answers
3
ankitgupta.1729 asked Dec 14, 2017
1,793 views
The primary difference between process and thread ?(A) The number of I/O requests mode.(B) The amount of overhead associated with creation and context switching .(C) The ...
1 votes
1 votes
2 answers
4
rahul sharma 5 asked Dec 6, 2017
675 views
Why threads have less context than process? Context means various attributes that we store in the PCB,so the attributes like state,property,PC,etc.. should be there in b...