Skip to content

Instantly share code, notes, and snippets.

@sonots
Created September 1, 2016 04:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonots/f7d680c762baf58e0f8b30248fc7680d to your computer and use it in GitHub Desktop.
Save sonots/f7d680c762baf58e0f8b30248fc7680d to your computer and use it in GitHub Desktop.
# ls /proc/ | grep 238
23801
23807
23829
23843
23853
23856
23859
23871
23895
26238

Why 23840 exists?

# ls /proc/23840/
attr       auxv    clear_refs  comm             cpuset  environ  fd      io      loginuid  mem        mounts      net  numa_maps  oom_score      pagemap      root   schedstat  smaps  stat   status   task
autogroup  cgroup  cmdline     coredump_filter  cwd     exe      fdinfo  limits  maps      mountinfo  mountstats  ns   oom_adj    oom_score_adj  personality  sched  sessionid  stack  statm  syscall  wchan
@sonots
Copy link
Author

sonots commented Sep 1, 2016

メインスレッド以外のスレッドは ls /proc では表示されないとのこと。
( ps の -L オプションで表示されるやつ. ps -eLF or ps auxwwww -L )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment