Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Threads in OS

  1. Jan 26, 2009 #1
    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

    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 !?
  2. jcsd
  3. Jan 26, 2009 #2
    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...
  4. Feb 3, 2009 #3
    i don't follow your idea about protection, i still can kill processes which run on kernel-level threads...
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook