• reshown by
1,193 views
0 0 votes
Consider two processes X and Y with X and Y having P and Q threads with equal time slices respectively. Threads are mixed with user level threads (ULT) and kernel level threads (KLT) and
P < Q. Now consider the following statements
I) If all threads are user level threads (ULT) then Y excutes (Q/P) times more faster than X.
II) If all threads are Kernel level threads (KLT) then Y gets (Q/P) times more CPU time than X.

Which of the above statements are TRUE?

I AM NOT ABLE TO UNDERSTAND THESE STATEMENTS MEANING PLEASE HELP

1 Answer

0 0 votes
None of the statements and none of the options are correct.

Statement-1 is wrong because both processes X and Y will get CPU for the same quantums of time. CPU doesn't know about the user level threads. Then how can anyone one process execute faster?

Statement-2 is wrong. Y gets lesser time than X because P>Q.

Statement-3 is wrong. Y takes more context switching time than X.
Position:
Show:

No related questions found