... la directory che non c'e' ...
nel filesystem virtuale /proc puo' capitare di trovarsi in una directory che non esiste
per prima cosa cercare un processo con piu' thread:
ps -eLf
--------------------------------------------------------------------------------------------
UID PID PPID LWP C NLWP STIME TTY TIME CMD
- - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - -- - - - -
root 1164 1 1164 0 65 08:22 ? 00:00:00 /usr/sbin/console-kit-daemon --no-
root 1164 1 1165 0 65 08:22 ? 00:00:00 /usr/sbin/console-kit-daemon --no-
root 1164 1 1166 0 65 08:22 ? 00:00:00 /usr/sbin/console-kit-daemon --no-
...
LWP = Light-weight process (thread)
NLWP = numero di LWP
da: pstree -ap
vedremo i thread tra {...}
in /proc/ vedremo la dir 1164
ma potremo accedere anche a tutte le altre dir dei thread:
1165
1166
ecc..
dentro queste dir troveremo:
- dentro /proc/1164/status: (primo thread)
Tgid: 1164
Pid: 1164
PPid: 1
- dentro /proc/1165/status: (altro thread)
Tgid: 1164
Pid: 1165
PPid: 1
Tgid: Thread group ID (i.e., Process ID)
Pid: Thread ID (see gettid(2))
PPid: Parent Pid
p.s.
http://digilander.libero.it/sacarde/data/teoria-lwp.txt
Le ultime notizie relative a questo argomento



















































Tutte le notizie relative a questo argomento