05-07-2009
priority for process
hi how to change the priority of a process for eg.if a,b,c these there process are running and if i have to give the b process as high priority and high severe level what should i do
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have been troubleshooting a mysterious performance problem with the nightly batch programs on our primary system for quite some time and just found something very interesting. All batch processes are running with a nice value of 24. I don't know what the default is on other systems but I do know... (3 Replies)
Discussion started by: keelba
3 Replies
2. UNIX for Advanced & Expert Users
Hi! Experts,
Is there anyway to incerase the priority of a process which is already started and running??.. I think nice can used for increase priority when we start the process..
But donno how to do when its already running..
Any help would be apreciated..
Jyoti (2 Replies)
Discussion started by: jyotipg
2 Replies
3. HP-UX
Hi folks,
Hope you can help me. I have a process that is currently running at nice 20 and need it to run faster (-10?). How do I change the process using nice? I have the process number and thought it would be along the lines of;
nice -10 process_id
but it doesn't seem to like that. (1 Reply)
Discussion started by: gshuttleworth
1 Replies
4. Solaris
hello,
I have a process lauched by non-root user.
how to lauch this process with a very high priority?
I know this has to do with nice command but how to allow a user to lauch his process with a very high priority and without ROOT intervention?
PS: this process is always lauched from a... (2 Replies)
Discussion started by: melanie_pfefer
2 Replies
5. UNIX for Dummies Questions & Answers
how to decrease priority of a particular process in time of process creation...
and also how to decrease priority of a particular process after process creation..
can any one please help me out... (2 Replies)
Discussion started by: Ramkum
2 Replies
6. Programming
hello everybody!
i would like to post a question. If i embed in my C code the command kill(9,pid) inside an if command. Is this command(kill) executed in any way. Both if the if is true and false. Does kill have greater priority than the if command.
thanx in advance! (5 Replies)
Discussion started by: nicos
5 Replies
7. AIX
Hi all!
Some dumb administrator run the weekly backup "by hand" on our AIX 5.3 server, which we use to deploy Websphere applications, during work hours. Using the server while the backup is taking place is almost imposible. Both the disks are working at 100% and it's almost unusable. Asking the... (2 Replies)
Discussion started by: shandrio
2 Replies
8. Red Hat
Hi All,
Is this correct on DNS searching?
(1st priority) /etc/hosts
(2nd p.) /etc/resolv.conf
Are there more things that I didn't know?
Thank you for any comments you may add. (5 Replies)
Discussion started by: itik
5 Replies
9. Red Hat
Hi,
I can't find the priority in my logs, which under the catalogue of /var/log/lmessages.
For example, if the log below occur on my machine, there is no <30>. What should I do if I want to see <30> .
<30>Oct 9 22:33:20 hlfedora auditd: The audit daemon is exiting. (0 Replies)
Discussion started by: zhaoyy
0 Replies
LEARN ABOUT SUNOS
ddi_intr_get_hilevel_pri
ddi_intr_get_hilevel_pri(9F) ddi_intr_get_hilevel_pri(9F)
NAME
ddi_intr_get_hilevel_pri - get minimum priority level for a high-level interrupt
SYNOPSIS
#include <sys/types.h>
#include <sys/conf.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_intr_get_hilevel_pri(void);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
Upon a successful return, the ddi_intr_get_hilevel_pri() function returns the minimum priority level for a high-level interrupt. The return
priority value can be used to compare to other priority values, such as those returned from ddi_intr_get_pri(9F), to determine if a given
interrupt priority is a high-level interrupt.
High-level interrupts must be handled without using system services that manipulate thread or process states, because such interrupts are
not blocked by the scheduler.
In addition, high-level interrupt handlers must take care to do a minimum of work because they cannot be preempted.
A typical high-level interrupt handler puts data into a circular buffer and schedule a soft interrupt by calling ddi_intr_trigger_soft-
int(). The circular buffer can be protected by using a mutex that is properly initialized for the interrupt handler.
The ddi_intr_get_hilevel_pri() function can be used before calling ddi_intr_add_handler() to help determine which type of interrupt handler
can be used. Most device drivers are designed with the knowledge that supported devices always generate low level interrupts. On some
machines, however, interrupts are high-level above the scheduler level and on other machines they are not. Devices such as those those
using SBus interrupts or VME bus level 6 or 7 interrupts must use the ddi_intr_get_hilevel_pri() function to test the type of interrupt
handler that can be used.
The ddi_intr_get_hilevel_pri() function returns the priority value for a high-level interrupt.
CONTEXT
The ddi_intr_get_hilevel_pri() function can be called from either user or kernel non-interrupt context.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
attributes(5), ddi_intr_add_handler(9F), ddi_intr_alloc(9F), ddi_intr_enable(9F), ddi_intr_get_pri(9F), ddi_intr_trigger_softint(9F),
mutex(9F)
07 Apr 2005 ddi_intr_get_hilevel_pri(9F)