I am new to Java and not familiar with computer science / OS. I have question related to Java multi-threading and CPU .
As per my understanding, Java allows us to create multiple threads with can run in parallel at the same time. So if need to execute say 2 threads at the same time do I need to have 2 CPU present on machine. So my confusion is that I need to execute say 8 threads at the same time do I need to have 8 CPU ?
Please help me understanding this concept.
Thanks