Skip to main content
getPriority - node__os.d.ts - Node documentation
function getPriority

Usage in Deno

```typescript import { getPriority } from "node:node__os.d.ts"; ```
getPriority(pid?: number): number
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.

Parameters

optional
pid: number = 0
The process ID to retrieve scheduling priority for.

Return Type

number