public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: lrtaylor@micron.com
To: <laalit_seth@hotmail.com>, <gcc-help@gcc.gnu.org>
Subject: RE: Fixing Priority
Date: Thu, 04 Nov 2004 17:59:00 -0000	[thread overview]
Message-ID: <363801FFD7B74240A329CEC3F7FE4CC40215DC55@ntxboimbx07.micron.com> (raw)

Lalit,

A process's priority is constantly changing based on its nice value and
how much CPU time it's had or how long it's been since it was given CPU
time.  It's how the scheduler decides what process to schedule next on
the CPU.  The longer the process hasn't had CPU time, the higher its
priority will become.  Once its priority gets high enough, the scheduler
will give it some CPU time.  The longer it has been running on the CPU,
the lower its priority will become, until it gets low enough for
something else to have a higher priority at which point it will get
moved off the CPU in favor of the other process.

Thanks,
Lyle


-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Lalit Seth
Sent: Thursday, November 04, 2004 12:35 AM
To: gcc-help@gcc.gnu.org
Subject: Fixing Priority

Hi,

I am having a Multi-Threaded Daemon running on HPUX 11.11 using GCC.

I can see in 'top' that its PRIORITY is somewhere near 236-255 with NICE
vlaue at 20.

There are other process running at priorities at 154, 156 but my daemon
always remain at top of the list.

Why?

Also i witnesssed that after few minutes of execution the PRIORITY is
changed to 152.
Why does it change from 242/255 to 152?

Is there any system call through which i can FIX the Priority for my
Daemon?

Many Thanks

_________________________________________________________________
Mergers, takeovers, buyouts. Get all the latest biz bytes. 
http://www.msn.co.in/business/ Tune in to MSN Business!

             reply	other threads:[~2004-11-04 17:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-04 17:59 lrtaylor [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-11-04  7:36 Lalit Seth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=363801FFD7B74240A329CEC3F7FE4CC40215DC55@ntxboimbx07.micron.com \
    --to=lrtaylor@micron.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=laalit_seth@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).