I'm using htop and looking at a process (rg) which launched multiple threads to search for text in files, here's the tree view in htop
:
PID Command
1019 |- rg 'search this'
1021 |- rg 'search this'
1022 |- rg 'search this'
1023 |- rg 'search this'
Why am I seeing PIDs for the process' threads? I thought threads didn't have a PID and they just shared their parent's PID.