Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of PID, PPID and TGID [closed]

What does the Linux kernel acronyms PID, PPID, TGID stand for?

I stumbled upon them at strace-pids.

like image 363
Nordlöw Avatar asked Jan 15 '13 16:01

Nordlöw


People also ask

What is PID and PPID in OS?

If a command starts just one process, its PID and PGID are the same. PPID. A process that creates a new process is called a parent process; the new process is called a child process. The parent process ID (PPID) becomes associated with the new child process when it is created. The PPID is not used for job control.

What is TGID in top?

TGID -- Thread Group Id The ID of the thread group to which a task belongs. It is the PID of the thread group leader. In kernel terms, it represents those tasks that share an mm_struct. 38. TIME -- CPU Time Total CPU time the task has used since it started.

What is TGID in Linux?

TGID: Thread Group Id.

What is the significance of PID and PPID explain with example?

The PPID is the PID of the process's parent. For example, if process1 with a PID of 101 starts a process named process2, then process2 will be given a unique PID, such as 3240, but it will be given the PPID of 101. It's a parent-child relationship.


1 Answers

  • PID: Process Id
  • PPID: Parent Process Id (the one which launched this PID)
  • TGID: Thread Group Id

see this question for more details

like image 85
aldrinleal Avatar answered Sep 21 '22 00:09

aldrinleal