06-18-2006
timer interrupt
hello all
since a process running in kernel mode cannnot be preempted by any other process what would be the status of Timer interrupt that occurs when the time quantum of a process is elapsed?
thanks
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I want to know the interrupt passed to a process through 'ulimit'
I am running a process which gets killed when the 'ulimit -t' reaches.
But after killing the process I want to start another process which would
send a message or do some clean up or anything at all.
To do the same I am... (5 Replies)
Discussion started by: mrnuttynuts
5 Replies
2. UNIX for Dummies Questions & Answers
This is on our Ultra 5/10 Sparc with Solaris 9.
I need to store the following (stty) keys in the .profile and /etc/profile files as
shown here.
erase "Back Space Key"
Interrupt "Ctrl + C"
I need the exact syntax/procudure as I have to set these two keys whenever I login to the terminal... (1 Reply)
Discussion started by: chrs0302
1 Replies
3. Shell Programming and Scripting
Is it possible to sent a ^C interrupt via the command line? For example if I want to tail a log for 10 minutes at a time, kill the tail and then start it again is there a way to go about that? I would imagine there would be some way to do it by finding and killing the PID, but I'm curious if... (2 Replies)
Discussion started by: DeCoTwc
2 Replies
4. Shell Programming and Scripting
Hi All,
Is interrupt handling possible in k shell?
Say if the user press CTRL-C or CTRl-D,I want to perform a particular action before terminating?
Thnaks! (2 Replies)
Discussion started by: prasperl
2 Replies
5. UNIX for Advanced & Expert Users
Hi,
i have an rhel box with around 20 %soft every 2 seconds. The box is idle.
How do i start hunting down what's causing this? i believe /proc/interrupts is hardware related, procinfo is basically the same. where else can i look?
thanks,
Marc (5 Replies)
Discussion started by: marcpascual
5 Replies
6. UNIX for Advanced & Expert Users
I receive the following warning messages on a very new machine which has FreeBSD 8.1 x64 installed on it:
Interrupt storm detected on "irq 20" throttling interrupt source
It is unclear what this means and what its origins are (motherboard? CPU? RAM?).
I can start the desktop and the message is... (4 Replies)
Discussion started by: figaro
4 Replies
7. UNIX for Advanced & Expert Users
Hi, all:
Is there any shell command to show which interrupt handler handle which interrupt number in the system?
li,kunlun (5 Replies)
Discussion started by: liklstar
5 Replies
8. What is on Your Mind?
Hi Friends
any know how became a friend in this Android Programming Language (0 Replies)
Discussion started by: ljarun
0 Replies
9. Shell Programming and Scripting
Hello
i have problem passing ctrl+C into shell script
this script will run application and return value but never ends and stay running.
i tried trap and not working at all
the command should look like this :
sarm pcsp -s CHG_M_P1
i want something to stop this command after... (9 Replies)
Discussion started by: mogabr
9 Replies
10. UNIX for Advanced & Expert Users
The book The Design of the Unix Operating System speaks of a clock or timer that is used in scheduling. The clock generates interrupts that update priority information for processes and preempt processes in a round-robin fashion. It's apparent that this "clock" is not the same thing as the CPU... (1 Reply)
Discussion started by: Ultrix
1 Replies
LEARN ABOUT LINUX
sched_rr_get_interval
SCHED_RR_GET_INTERVAL(2) Linux Programmer's Manual SCHED_RR_GET_INTERVAL(2)
NAME
sched_rr_get_interval - get the SCHED_RR interval for the named process
SYNOPSIS
#include <sched.h>
int sched_rr_get_interval(pid_t pid, struct timespec * tp);
DESCRIPTION
sched_rr_get_interval() writes into the timespec structure pointed to by tp the round-robin time quantum for the process identified by pid.
The timespec structure has the following form:
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};
If pid is zero, the time quantum for the calling process is written into *tp. The identified process should be running under the SCHED_RR
scheduling policy. POSIX systems on which sched_rr_get_interval() is available define _POSIX_PRIORITY_SCHEDULING in <unistd.h>.
RETURN VALUE
On success, sched_rr_get_interval() returns 0. On error, -1 is returned, and errno is set appropriately.
ERRORS
EFAULT Problem with copying information to userspace.
EINVAL Invalid pid.
ENOSYS The system call is not yet implemented (only on rather old kernels).
ESRCH The process whose ID is pid could not be found.
CONFORMING TO
POSIX.1-2001.
NOTES
Linux Notes
POSIX does not specify any mechanism for controlling the size of the round-robin time quantum. However, Linux provides a (nonportable)
method of doing this. The quantum can be controlled by adjusting the process's nice value (see setpriority(2)). Assigning a negative
(i.e., high) nice value results in a longer quantum; assigning a positive (i.e., low) nice value results in a shorter quantum. The default
quantum is 0.1 seconds; the degree to which changing the nice value affects the quantum has varied somewhat across kernel versions.
SEE ALSO
sched_setscheduler(2) has a description of the Linux scheduling scheme.
Programming for the real world - POSIX.4 by Bill O. Gallmeister, O'Reilly & Associates, Inc., ISBN 1-56592-074-0
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2007-04-06 SCHED_RR_GET_INTERVAL(2)