Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

CHANGETASKPRI AmigaDOS
Purpose: To change the priority of a currently running program.
Format: CHANGETASKPRI <priority> PROCESS <process number>] NAME <name>]
Template: PRI=PRIORITY/A/N, PROCESS/K/N, NAME/K
Path: C:CHANGETASKPRI
Since AmigaOS 4.0 is a multitasking operating system, it uses priority numbers to determine the order in which current tasks should be serviced. Normally, most tasks have a priority of 0, and the time and instruction cycles of the CPU are divided equally among them. Any tasks started from a Shell process inherit the priority of that process.

CHANGETASKPRI changes the priority of the <process> or <name> specified. If no <process> or <name> is specified, the current Shell process is assumed. Use the STATUS command to display the current process numbers and names.

The range of acceptable values for <priority> is the integers -128 to 127, with higher values yielding a higher priority (a greater proportion of CPU time is allocated). However, do not enter values above +10, or you may disrupt important system tasks. Too low a priority (less than 0) can result in a process taking unreasonably long to execute.

Example 1:

3.OS4:> STATUS
Process  3: Loaded as command: status
Process  5: Loaded as command: execute
Process  6: Loaded as command: wait
Process  7: Loaded as command: find
3.OS4:> CHANGETASKPRI 4 PROCESS 5
The priority of Process 5 (execute) is changed to 4. Any tasks started from this Shell will also have a priority of 4. They will have priority over any other user tasks created without using CHANGETASKPRI (those tasks will have a priority of 0).

Example 2:

3.OS4:> CHANGETASKPRI 8 NAME=FIND The priority of 'find' (Process 7) is changed to 8. Any tasks started from this Shell will also have a priority of 8. They will have priority over any other user tasks created without using CHANGETASKPRI (those tasks will have a priority of 0).

See Also: STATUS


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.