On 21/11/23 at 17:43, Michael Kjörling wrote:
~$ ps -eo pid,lstart,etime -q 1620,6841
     PID                  STARTED     ELAPSED
    1620 Mon Nov 20 16:12:47 2023    23:47:16
    1620 Tue Nov 21 15:59:36 2023       00:28
Maybe for that what you want is "tid" not "pid"?

Wonderful this did the trick:

~$ ps -eo tid,lstart,etime -q 1620,6841
    TID                  STARTED     ELAPSED
   1620 Mon Nov 20 16:12:47 2023  1-01:33:53
   6841 Tue Nov 21 15:59:36 2023    01:47:05

I guess TID means Thread IDentifier although in the "ps" man page is not explicitly mentioned:
...
tid TID the unique number representing a dispatchable entity (alias lwp, spid). This value may also appear as: a process ID (pid); a process group ID (pgrp); a session ID for the session leader (sid); a thread group ID for the thread group leader (tgid); and a tty process group ID for the process group leader (tpgid).
...

I'm wrong? What does it mean?

--
Franco Martelli

Reply via email to