5 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. Operating System threads process + – vijaycs 2.5k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply Kapil commented Sep 20, 2016 reply Follow flag B is right . 0 0 replyShare mcjoshi commented Sep 20, 2016 reply Follow flag Yes (B) is correct. 1 1 replyShare srestha commented Sep 20, 2016 reply Follow flag Reason, A is in runnug and B is waiting to get it's turn. So, when A is not in execution stage, B got it's turn to execute. 1 1 replyShare Please log in or register to add a comment.
6 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 Aboveallplayer answered Nov 3, 2016 • edited Nov 3, 2016 by Aboveallplayer Aboveallplayer comment Share Follow See all 2 Comments 2 2 Comments reply vamp_vaibhav commented Aug 11, 2017 reply Follow flag i have read in galvin that....if one thread calls for blocking state the other threads will be blocked only in case of many to one model....for other models this will not happen...so how we generalise this concept to statement that every time it is blocked ?? 3 3 replyShare smsubham commented Apr 23, 2020 reply Follow flag @vamp_vaibhav yes that is correct. Question is wrongly framed. 0 0 replyShare Please log in or register to add a comment.
0 0 votes B is correct sharmishtha paliwal answered Nov 3, 2016 sharmishtha paliwal comment Share Follow 0 reply Please log in or register to add a comment.