Did you know ... | Search Documentation: |
sched.pl |
The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
Priority is the nice value of the process and is an integer in the
range -20..20, where lower numbers denote a higher priority. Who can
be 0
(zero) to specify the calling process, process group or user.
Please consult the scheduler documentation of your operating system before using setpriority/3. Unix systems generally schedule a process at a given priority only if there is no process with a higher priority (lower nice value) in runnable state.
For example, to lower the priority of the gc
thread we can use the
call below. Note that this may cause GC to never run.
?- thread_property(gc, system_thread_id(PID)), setpriority(process, PID, 5).
Priority is the nice value of the process and is an integer in the
range -20..20, where lower numbers denote a higher priority. Who can
be 0
(zero) to specify the calling process, process group or user.
Please consult the scheduler documentation of your operating system before using setpriority/3. Unix systems generally schedule a process at a given priority only if there is no process with a higher priority (lower nice value) in runnable state.
For example, to lower the priority of the gc
thread we can use the
call below. Note that this may cause GC to never run.
?- thread_property(gc, system_thread_id(PID)), setpriority(process, PID, 5).