View Single Post
  #47 (permalink)  
Old 04-19-2008, 01:16 AM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default Re: Ruby BuiltIn functions

getpriority
process.getpriority( aKind, anInteger ) -> aFixnum
Gets the scheduling priority for specified process, process group, or user. aKind indicates the kind of entity to find: one of Process::PRIO_PGRP , Process::PRIO_USER , or Process::PRIO_PROCESS . anInteger is an id indicating the particular process, process group, or user (an id of 0 means current). Lower priorities are more favorable for scheduling. Not available on all platforms.

Process.getpriority(Process::PRIO_USER, 0) » 0
Process.getpriority(Process::PRIO_PROCESS, 0) » 0

gid
process.gid -> aFixnum
Returns the group id for this process.
Process.gid » 500
__________________
Shaalini.S
Be the Best of Whatever you are...
Reply With Quote