public class Process extends Object
Constructor and Description |
---|
Process() |
Modifier and Type | Method and Description |
---|---|
static long |
getMaxIOHandlesHardLimit()
Gets the hard limit for IO handles for this process (max fds in unix terminology).
|
static long |
getMaxIOHandlesSoftLimit()
Gets the soft limit for IO handles for this process (max fds in unix terminology)
|
static int |
getPid()
Gets the process id of the running process.
|
static void |
setMaxIOHandlesSoftLimit(long maxHandles)
Sets the soft limit for IO handles for this process (max fds in unix terminology).
|
public static int getPid()
public static long getMaxIOHandlesSoftLimit()
public static long getMaxIOHandlesHardLimit()
public static void setMaxIOHandlesSoftLimit(long maxHandles)
maxHandles
- new soft limit for this process.CrtRuntimeException
- if the operation fails due to illegal arguments or the opereration is unsupported on
the current platform.Copyright © 2021. All rights reserved.