niced processes

Jump to First Reply
Posted:
in macOS edited January 2014
What are niced processes? They appear as blue in the expanded cpu monitor window.

Comments

  • Reply 1 of 8
    wmfwmf Posts: 1,164member
    Niced processes are nice, so they get less of the CPU and run slower.
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 8
    you can alter the 'nice' value of processes via the terminal. first, discover the pid (with top, or ps). then do: "renice amt pid". where amt is a positive or negative number (magnitude up to 20); amt is the 'nice' amount. low numbers are high priority (more proc), hi numbers are low priority (less proc). I think u need to be root in order to change the nice to a negative number. it's also possible to start a process with a certain nice value (with the 'nice' command), but i never got it to work right.
     0Likes 0Dislikes 0Informatives
  • Reply 3 of 8
    Then wouldn't this allow one process to control the CPU, thus reverting to the OS 9 way of one process controlling the whole machine? This seems like a violation of the way OS X's multiprocessing works.
     0Likes 0Dislikes 0Informatives
  • Reply 4 of 8
    aquaticaquatic Posts: 5,602member
    Hey Eric it's Kevin from URI, Ryan's Rabahoweveryouspellit's friend. Your drinking buddy. How funny is that! Small world.



    Anyway if you don't want to learn all that gibberish check <a href="http://www.versiontracker.com/moreinfo.fcgi?id=13336&db=mac"; target="_blank">this</a> out.



    You nice something up to give it more of the computer's processor power so it will run faster.
     0Likes 0Dislikes 0Informatives
  • Reply 5 of 8
    kickahakickaha Posts: 8,760member
    [quote]Originally posted by Spiffster:

    <strong>Then wouldn't this allow one process to control the CPU, thus reverting to the OS 9 way of one process controlling the whole machine? This seems like a violation of the way OS X's multiprocessing works.</strong><hr></blockquote>



    Nope. 1) Nicing is a *request* of the OS. If the OS determines that your nicing value is just ludicrous, or that it interferes too much with the other processes, it's free to ignore you. 2) The OS has -infinity nice. It can override *anybody* at any time. And it will. This prevents someone from taking over, since the OS will cut in, say "Oh come now, that's just rude..." and pop up the nice value to make the app behave.



    Under OS 9, the OS was another process that had to wait for a timeslice. Under MacOS X, the OS is what *decides* who gets timeslices.
     0Likes 0Dislikes 0Informatives
  • Reply 6 of 8
    scottscott Posts: 7,431member
    Remember to read the man page of the shell you are using. The nice value depends on what you shell uses. If I remember some go -20 to 20 and other go 0 to40. Or something like that. RTFM.



    [ 01-28-2003: Message edited by: Scott ]</p>
     0Likes 0Dislikes 0Informatives
  • Reply 7 of 8
    Thanks for the explaination.
     0Likes 0Dislikes 0Informatives
  • Reply 8 of 8
    overhopeoverhope Posts: 1,123member
    [quote]Originally posted by Kickaha:

    <strong>The OS has -infinity nice.</strong><hr></blockquote>



    Man, that's just beautiful.



    /me goes to work out ways to convince Windoze freaks that this means their OS sucks.
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.