" 目录:RHCA+ -> 16 proc -> 2-2 proc_pid_task "

/proc/PID/task/TID线程目录,下面每个目录都是线程
/proc/PID/task/TID子目录中的每个文件内容和/proc/PID/目录中的相应文件内容相同
root@wuzuniao \~# ll /proc/1/task/1 #第一个1是进程ID,第二个1是线程ID
total 0
dr-xr-xr-x. 2 root root 0 Sep 8 22:37 attr
-r--------. 1 root root 0 Sep 8 22:39 auxv
-r--r--r--. 1 root root 0 Sep 8 22:39 cgroup
--w-------. 1 root root 0 Sep 8 22:39 clear_refs
-r--r--r--. 1 root root 0 Sep 8 22:39 cmdline
-rw-r--r--. 1 root root 0 Sep 8 22:39 comm
-r--r--r--. 1 root root 0 Sep 8 22:39 cpuset
lrwxrwxrwx. 1 root root 0 Sep 8 22:39 cwd -> /
-r--------. 1 root root 0 Sep 8 22:39 environ
lrwxrwxrwx. 1 root root 0 Sep 8 22:39 exe -> /usr/lib/systemd/systemd
dr-x------. 2 root root 0 Sep 8 22:39 fd
dr-x------. 2 root root 0 Sep 8 22:39 fdinfo
-rw-r--r--. 1 root root 0 Sep 8 22:39 gid_map
-r--------. 1 root root 0 Sep 8 22:39 io
-r--r--r--. 1 root root 0 Sep 8 22:39 limits
-rw-r--r--. 1 root root 0 Sep 8 22:39 loginuid
-r--r--r--. 1 root root 0 Sep 8 22:39 maps
-rw-------. 1 root root 0 Sep 8 22:39 mem
-r--r--r--. 1 root root 0 Sep 8 22:39 mountinfo
-r--r--r--. 1 root root 0 Sep 8 22:39 mounts
dr-x--x--x. 2 root root 0 Sep 8 22:39 ns
-r--r--r--. 1 root root 0 Sep 8 22:39 numa_maps
-rw-r--r--. 1 root root 0 Sep 8 22:39 oom_adj
-r--r--r--. 1 root root 0 Sep 8 22:39 oom_score
-rw-r--r--. 1 root root 0 Sep 8 22:39 oom_score_adj
-r--r--r--. 1 root root 0 Sep 8 22:39 pagemap
-r--r--r--. 1 root root 0 Sep 8 22:39 personality
-rw-r--r--. 1 root root 0 Sep 8 22:39 projid_map
lrwxrwxrwx. 1 root root 0 Sep 8 22:39 root -> /
-rw-r--r--. 1 root root 0 Sep 8 22:39 sched
-r--r--r--. 1 root root 0 Sep 8 22:39 sessionid
-r--r--r--. 1 root root 0 Sep 8 22:39 smaps
-r--r--r--. 1 root root 0 Sep 8 22:39 stack
-r--r--r--. 1 root root 0 Sep 8 22:39 stat
-r--r--r--. 1 root root 0 Sep 8 22:39 statm
-r--r--r--. 1 root root 0 Sep 8 22:39 status
-r--r--r--. 1 root root 0 Sep 8 22:39 syscall
-rw-r--r--. 1 root root 0 Sep 8 22:39 uid_map
-r--r--r--. 1 root root 0 Sep 8 22:39 wchan
root@wuzuniao \~#