Why does VirtualBox spawn so may processes on Linux?

mihirj asked:

I am using virtualbox version 4.1.12_Ubuntur77245. Following is a screenshot of the command htop. Does anybody know why does virtualbox spawn multiple processes for a single VM?

enter image description here

I answered:

Those aren’t processes, they’re threads. As indicated by the graph, all but the top one are threads spawned by the main process 3164. (Each thread also gets its own PID in Linux.)

You can press H in htop to collapse or expand process threads.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.