What is the relationship between threads (in a Java or a C++ program) and number of cores in the CPU?
问题 Can someone shed some light on it? An i7 processor can run 8 threads but I am pretty sure we can create more than 8 threads in a JAVA or C++ program(not sure though). I have an i5 processor and while studying concurrency I have created 10 threads for assignments. I am just trying to understand how Core rating of CPU is related to threads. 回答1: The thread you are refering to is called a software thread ; and you can create as many software threads as you need, as long as your operating system