On this page

    M

    os.getPriority

    History
    os.getPriority(pid?): integer
    Attributes
    pid?:integer
    The process ID to retrieve scheduling priority for. Default: 0.
    Returns:integer

    Returns the scheduling priority for the process specified by pid. If pid is not provided or is 0, the priority of the current process is returned.