Struct procfs::process::Task [−][src]
Expand description
A task (aka Thread) inside of a Process
Created by Process::tasks
, tasks in
general are similar to Processes and should have mostly the same fields.
Fields
pid: i32
The ID of the process that this task belongs to
tid: i32
The task ID
Implementations
Thread info from /proc/<pid>/task/<tid>/stat
Many of the returned fields will be the same as the parent process, but some fields like utime
and stime
will be per-task
Thread info from /proc/<pid>/task/<tid>/status
Many of the returned fields will be the same as the parent process
Thread IO info from /proc/<pid>/task/<tid>/io
This data will be unique per task.
Thread scheduler info from /proc/<pid>/task/<tid>/schedstat
This data will be unique per task.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Task
impl UnwindSafe for Task
Blanket Implementations
Mutably borrows from an owned value. Read more