ipcGetPriority
ipcGetPriority( [o_childId] ) =>x_priority
Description
Gets the current default priority. If a child process handle is given, ipcGetPriority returns the priority under which the relevant child process was invoked.
Arguments
|
Child process handle returned from |
Value Returned
|
Current default priority or the priority under which a child process that associates with the given o_childId was invoked. |
Examples
ipcGetPriority() ; Default priority
15
ipcSetPriority(5)
t
ipcGetPriority() ; New default priority
5
cid0 = ipcBeginProcess("pwd")
ipc:7
ipcGetPriority(cid0) ; Priority of the child
5 ; process associates with
; ’cid0’
ipcSetPriority(10)
t
ipcGetPriority()
10
cid1 = ipcBeginProcess("ls")
ipc:8
ipcGetPriority(cid1) ; The child process associates
10 ; with ’cid1’ runs at the new
; default priority
ipcGetPriority(cid0) ; Priority of the child
5 ; process associates with
; only tighted to the
; priority under which it
; was invoked.
Related Topics
Interprocess Communication Functions
Return to top