Deleted Added
full compact
sched_setparam.2 (116023) sched_setparam.2 (131504)
1.\" $FreeBSD: head/lib/libc/sys/sched_setparam.2 116023 2003-06-08 10:11:13Z charnier $
1.\" $FreeBSD: head/lib/libc/sys/sched_setparam.2 131504 2004-07-02 23:52:20Z ru $
2.\" Copyright (c) 1998 HD Associates, Inc.
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\" notice, this list of conditions and the following disclaimer.

--- 70 unchanged lines hidden (view full) ---

80priority have been scheduled to run.
81.Pp
82If the priority of the process specified by the
83.Fa pid
84argument is set higher than that of the lowest priority running process
85and if the specified process is ready to run, the process specified by
86the
87.Fa pid
2.\" Copyright (c) 1998 HD Associates, Inc.
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\" notice, this list of conditions and the following disclaimer.

--- 70 unchanged lines hidden (view full) ---

80priority have been scheduled to run.
81.Pp
82If the priority of the process specified by the
83.Fa pid
84argument is set higher than that of the lowest priority running process
85and if the specified process is ready to run, the process specified by
86the
87.Fa pid
88argument will preempt a lowest priority running process. Similarly, if
88argument will preempt a lowest priority running process.
89Similarly, if
89the process calling
90.Fn sched_setparam
91sets its own priority lower than that of one or more other nonempty
92process lists, then the process that is the head of the highest priority
90the process calling
91.Fn sched_setparam
92sets its own priority lower than that of one or more other nonempty
93process lists, then the process that is the head of the highest priority
93list will also preempt the calling process. Thus, in either case, the
94list will also preempt the calling process.
95Thus, in either case, the
94originating process might not receive notification of the completion of
95the requested priority change until the higher priority process has
96executed.
97.Pp
98In this implementation, when the current scheduling policy for the
99process specified by
100.Fa pid
101is normal timesharing (SCHED_OTHER, aka SCHED_NORMAL when not POSIX-source)

--- 21 unchanged lines hidden (view full) ---

123In this implementation, the policy of when a process can obtain the
124scheduling parameters of another process are detailed in
125.St -p1003.1b-93
126as a read-style operation.
127.Pp
128If
129.Fa pid
130is zero, the scheduling parameters for the calling process will be
96originating process might not receive notification of the completion of
97the requested priority change until the higher priority process has
98executed.
99.Pp
100In this implementation, when the current scheduling policy for the
101process specified by
102.Fa pid
103is normal timesharing (SCHED_OTHER, aka SCHED_NORMAL when not POSIX-source)

--- 21 unchanged lines hidden (view full) ---

125In this implementation, the policy of when a process can obtain the
126scheduling parameters of another process are detailed in
127.St -p1003.1b-93
128as a read-style operation.
129.Pp
130If
131.Fa pid
132is zero, the scheduling parameters for the calling process will be
131returned. In this implementation, the
133returned.
134In this implementation, the
132.Fa sched_getparam
133system call will fail if
134.Fa pid
135is negative.
136.Sh RETURN VALUES
137.Rv -std
138.Sh ERRORS
139On failure

--- 32 unchanged lines hidden ---
135.Fa sched_getparam
136system call will fail if
137.Fa pid
138is negative.
139.Sh RETURN VALUES
140.Rv -std
141.Sh ERRORS
142On failure

--- 32 unchanged lines hidden ---