4,757 views
3 votes
3 votes
which of the following statements is false about threads?

(a) since there is sharing among threads there is a potential problem of security

(b) the kernel level threads are slow

(c) user level threads can not be implemented on an OS that doesnot support threads

(d) kernel level threads are good for applications that frequently got blecked

1 Answer

Best answer
8 votes
8 votes

Let us each option one by one.

Option A) is true because threads share common data , memory and code segments , so proper synchronisation mechanism should be provided to enhance the security of the system

Option  B) is true because the kernel level threads are heavier as they have more context hence the context switch overhead will increase making the kernel level threads slower as compared to user level threads.

Option C) is false because the OS views the user level threads as process only so even though the threading support is not there , user threads will not be affected.

Option D) is true since we know that blocking the kernel thread only blocks that corresponding thread but blocking user level thread blocks the entire process since as mentioned earlier the OS views the user level threads as processes only.So if an application that gets blocked frequently , for them kernel level thread is better than user level thread.

Hence option C)  should be the correct option.

selected by

Related questions

0 votes
0 votes
0 answers
1
Nishtha_Agarwal asked Jan 8, 2019
146 views
0 votes
0 votes
0 answers
2
Nishtha_Agarwal asked Jan 7, 2019
276 views
Options are-How these type of questions are solved??
0 votes
0 votes
0 answers
3
Anirban Biswas asked Jan 10, 2017
310 views