I just had a look at my webserver using "htop", and I see the usual list of apache and jvm entries. I thought that, apart from the main calling program, all of them were threads, and I see that all of them have different pids.
And I am programming since a while in C++ & QT a small app (on my notebook) which starts a separate QT-Thread ("QThread") and it gets a different PID than the main calling program.
Both the webserver & the notebook have 2.6.x-Kernels (Notebook 2.6.28).
But yes, I remember that in the past I saw threads having the same pid as the main program, but I cannot remember anymore where - perhaps it was on a AIX system.
So, perhaps there are threads and threads? Different types?