in Operating System
1,706 views
1 vote
1 vote

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 part of one process so it wont execute on Different Processors.

Am i right ?

But answer given is (A)

in Operating System
by
1.7k views

4 Comments

edited by

I think, we can in fact improve the performance of the multithreaded solution using user-level threads in multiprocessor environments.

In multiprocessor environments, it is guaranteed that there are many kernel level threads.

Since, in the question it is not given which type of mapping is used between User-level threads and kernel level threads, we can assume the mapping is one-to-one (which is most popular and is used by Linux and Windows).

In such a mapping, true parallelism is possible !

Have a look at the lecture series on operating systems by Georgia Tech. (https://classroom.udacity.com/courses/ud923/lessons/3065538763/concepts/31631188030923)



 

However, if you assume that the mapping is many-to-one, in that case, the performance would be same as Single processor system.

0
0
Now i am confused that's a good point u made now in GATE question which mapping to use ? One to one or many to one ? P
0
0

@Shaik Masthan sir, please throw a light on this question

0
0

1 Answer

0 votes
0 votes
only statement 2 is correct

Related questions