sched.h(3HEAD) Headers sched.h(3HEAD)NAME
sched.h, sched - execution scheduling
SYNOPSIS
#include <sched.h>
DESCRIPTION
The <sched.h> header defines the sched_param structure, which contains the scheduling parameters required for implementation of each sup-
ported scheduling policy. This structure contains the following member:
int sched_priority process execution scheduling priority
Each process is controlled by an associated scheduling policy and priority. Associated with each policy is a priority range. Each policy
definition specifies the minimum priority range for that policy. The priority ranges for each policy may overlap the priority ranges of
other policies.
The scheduling policies are indicated by the values of the following symbolic constants:
SCHED_FIFO Processes are scheduled according to the First-In-First-Out (FIFO) policy. Processes scheduled to this policy, if not pre-
empted by a higher priority or interrupted by a signal, will proceed until completion.
SCHED_RR Processes are scheduled according to the Round-Robin (RR) policy. Processes scheduled to this policy, if not pre-empted by
a higher priority or interrupted by a signal, will execute for a time period, returned by sched_rr_get_interval(3RT) or by
the system.
SCHED_IA Processes are scheduled according to the Inter-Active Class (IA) policy as described in priocntl(2).
SCHED_OTHER Processes are scheduled according to another policy not described above.
The values of these constants are distinct.
Inclusion of the <sched.h> header will make visible symbols defined in the header <time.h>.
SEE ALSO priocntl(2), sched_rr_get_interval(3RT), time.h(3HEAD)SunOS 5.10 4 Oct 2001 sched.h(3HEAD)
Check Out this Related Man Page
sched.h(3HEAD) Headers sched.h(3HEAD)NAME
sched.h, sched - execution scheduling
SYNOPSIS
#include <sched.h>
DESCRIPTION
The <sched.h> header defines the sched_param structure, which contains the scheduling parameters required for implementation of each sup-
ported scheduling policy. This structure contains the following member:
int sched_priority process execution scheduling priority
Each process is controlled by an associated scheduling policy and priority. Associated with each policy is a priority range. Each policy
definition specifies the minimum priority range for that policy. The priority ranges for each policy may overlap the priority ranges of
other policies.
The scheduling policies are indicated by the values of the following symbolic constants:
SCHED_FIFO Processes are scheduled according to the First-In-First-Out (FIFO) policy. Processes scheduled to this policy, if not pre-
empted by a higher priority or interrupted by a signal, will proceed until completion.
SCHED_RR Processes are scheduled according to the Round-Robin (RR) policy. Processes scheduled to this policy, if not pre-empted by
a higher priority or interrupted by a signal, will execute for a time period, returned by sched_rr_get_interval(3RT) or by
the system.
SCHED_IA Processes are scheduled according to the Inter-Active Class (IA) policy as described in priocntl(2).
SCHED_OTHER Processes are scheduled according to another policy not described above.
The values of these constants are distinct.
Inclusion of the <sched.h> header will make visible symbols defined in the header <time.h>.
SEE ALSO priocntl(2), sched_rr_get_interval(3RT), time.h(3HEAD)SunOS 5.10 4 Oct 2001 sched.h(3HEAD)
Hi Experts,
I want to call script_name.ksh as many time as id in customer table and also pass it as a parameter to script.
someting Like below.
for i in select id from customer
do
./script_name.ksh $i &
done
I have figured out how to have ID from customer but now how to call... (3 Replies)
Hello everyone i am new to Linux. could anyone help me with the names of the Linux processes, threads and scheduling header files. I need them to write a documentation on Linux processes and threads. Thanks (5 Replies)
I have found some definitions as below, can anyone explain me what it means and why it is being used this way please.
asmlinkage void __sched schedule(void) (4 Replies)
I was trying to experiment with SCHED_RR and SCHED_FIFO.
I tried benchmarking the SCHED_NORMAL with these two real time priorities.
What I found is strange result. SHED_RR was the slowest then comes SCHED_FIFO and SCHED_NORMAL was the fastest one.
All tests are run in same situation and... (3 Replies)
Hi I am trying to install drbd8 via apt-get on ubuntu10
sudo apt-get install drbd8-source
password for vishals:
Reading package lists... Done
Building dependency tree
Reading state information... Done
drbd8-source is already the newest version.
drbd8-source set to manually installed.
0... (0 Replies)
Hello,
I am writing a threaded program using the pthread library in linux. I have a master thread that needs to control worker threads, in particular, it has to be able to ensure that none of the worker threads will be running for a specified amount of time, even if the worker threads are... (7 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
My problem is that when creating my producers and consumers, if I don't create an equal number of both, the... (12 Replies)
I'm a beginner to the Linux programming and trying my hands on some device driver examples while practising. The below code (a trimmed down version of tiny_tty.c from ldd3 book) loads perfectly using insmod and I'm able to see it in /proc/tty/drivers , /proc/modules and device nodes are getting... (1 Reply)
Hi everyone , i'm working with extremely precision timers in a project but i cant get all the precision that i need 'cause the scheduler and other processes use the processor at "the same time" (multiplexing) and 1ms isn't a 1ms is more or less 1ms . There is some way to execute only a process and... (3 Replies)
Platform: Oracle Linux 6.4
To find the most memory consuming processes, I tried the following 2 methods
1. Method1
# ps aux | head -1 ; ps aux | sort -nk +4 | tail -7
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 95 0.0 0.0 0 0 ? ... (2 Replies)
Is it possible to write an application in "c" that can be used to start other applications and limit a process from using certain Linux APIs ( in this case I want to keep a process from being able to access the internet ) ? I've been reading "The Linux Programming Interface" by Micheal Kerrisk ,... (11 Replies)
I can't compile anything, the final make error says "Command failed for target `install-recursive'", but I am not able to identify the root cause of that error, I tried with cc, gcc 4.5, also gcc 5.2, using make, using gmake 3.82, ld 5.11, gld 2.31... and I am totally stuck yet... please help, to... (4 Replies)
Someone, please help on this issue:-
Note : for security reason i didn't mention hostnames and ips.
==============================================================================
# ntpstat
unsynchronised
polling server every 1024 s
Ntpstat showing unsynchronised.
... (29 Replies)