Managing Threads in OS: User-Space vs. Kernel-Level Benefits

  • Thread starter Thread starter khdani
  • Start date Start date
  • Tags Tags
    Os Threads
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
khdani
Messages
53
Reaction score
0
Hello,
please help with this question
What of the following is difficult to manage if there are user-space threads and what
will be easier when there are kernel-level threads?
1)code segment
2)data segment
3)stack
4)registers

I don't understand the logic of that question, I think everything would be easier with kernel-threads, cause user-space threads can block the whole process !?
 
Physics news on Phys.org
The idea here is protection of the computer from users. Of course you would want to protect registers, right? A malicious or sloppy user could kill all the other user's processes if that user could control the registers right? How about the stacks? Does the computer need protection from user code? data?

Think about it and give us an answer. We will critique that...
 
i don't follow your idea about protection, i still can kill processes which run on kernel-level threads...