> This is a common confusion. > > Threads: Literally running two different pieces of code in parallel at the > same time, on two physically different CPU cores.
Are you sure your definition is exact? I have the feeling that threads often mean concurrency, which is not parallel. See [https://stackoverflow.com/questions/1897993/what-is-the-difference-between-concurrent-programming-and-parallel-programming](https://stackoverflow.com/questions/1897993/what-is-the-difference-between-concurrent-programming-and-parallel-programming) But I am confused by the terms often :-)
