public final class Proc extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CLONE_NEWCGROUP |
static int |
CLONE_NEWIPC |
static int |
CLONE_NEWNET |
static int |
CLONE_NEWPID |
static int |
CLONE_NEWUSER |
static int |
CLONE_NEWUTS |
static int |
IOPRIO_CLASS_BE |
static int |
IOPRIO_CLASS_IDLE |
static int |
IOPRIO_CLASS_RT |
static boolean |
IS_SUPPORTED |
static int |
SCHED_BATCH |
static int |
SCHED_IDLE |
static int |
SCHED_OTHER |
| Constructor and Description |
|---|
Proc() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getpid() |
static int |
getppid() |
static int |
gettid() |
static int |
ioprio_get(int pid) |
static int |
ioprio_set(int pid,
int ioprio) |
static long |
sched_getaffinity(int pid) |
static int |
sched_getscheduler(int pid) |
static int |
sched_setaffinity(int pid,
long mask) |
static int |
sched_setscheduler(int pid,
int policy) |
static int |
setns(int fd,
int nstype) |
public static final boolean IS_SUPPORTED
public static final int IOPRIO_CLASS_RT
public static final int IOPRIO_CLASS_BE
public static final int IOPRIO_CLASS_IDLE
public static final int SCHED_OTHER
public static final int SCHED_BATCH
public static final int SCHED_IDLE
public static final int CLONE_NEWCGROUP
public static final int CLONE_NEWUTS
public static final int CLONE_NEWIPC
public static final int CLONE_NEWUSER
public static final int CLONE_NEWPID
public static final int CLONE_NEWNET
public static int gettid()
public static int getpid()
public static int getppid()
public static int sched_setaffinity(int pid,
long mask)
public static long sched_getaffinity(int pid)
public static int ioprio_set(int pid,
int ioprio)
public static int ioprio_get(int pid)
public static int sched_setscheduler(int pid,
int policy)
pid - pid or tid. 0 for current threadpublic static int sched_getscheduler(int pid)
pid - pid or tid. 0 for current threadpublic static int setns(int fd,
int nstype)
fd - is a file descriptor referring to one of the
namespace entries in a /proc/[pid]/ns/ directorynstype - specifies which type of namespace the calling
thread may be reassociated with. One of CLONE_* constants
or 0 to allow any type of namespace to be joinedCopyright © 2019. All rights reserved.