•  Back 
  •  Prozessfunktionen 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - das Betriebssystem
Author      : 
Version     : tos.hyp (5. März 2013)
Subject     : Programmieren/Atari
Nodes       : 3001
Index Size  : 93602
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Titel
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File5.11.13  Pgetpriority                                              TOS

 Name:         »Pgetpriority« - gets the current priority value for a 
               process

 Gemdosnummer: 344 (0x0158)

 Deklaration:  int32_t Pgetpriority ( int16_t which, int16_t who);

 Beschreibung: This function gets the priority of the processes 
               specified by which and who. The interpretation of 
               parameter who depends on which:

               PRIO_PROCESS (0) reads the priority of process with 
               process id which. A who of 0 implies the process id of 
               the calling process.

               PRIO_PGRP (1) reads the priority of the process group 
               with process group id who. If the priorities of the 
               process differ, the lowest valued priority (i. e. the 
               highest CPU usage priority) is returned. A who of 0 
               implies the process group id of the calling process.

               PRIO_USER (2) reads the priority of the process of the 
               user with user id who. For multiple processes the 
               lowest valued priority is returned. A who of 0 implies 
               the user id of the calling process.

               Library functions should first check for an error 
               condition and then decrement the returned value by 20.

               This call makes calls Pnice and Prenice obsolete.

 Ergebnis:     Return value is either a negative error number in case 
               of failure or the requested priority + 20 on success.

 Verfügbar:    MiNT 1.15.0

 Gruppe:       Prozessfunktionen

 Querverweis:  Binding   Psetpriority