Is the same speed with more cores/threads better?
2 minutes ago, zdemigod said:So I'm a software engineering student and I just heard my teacher say
"If I have a 2 core procesor that is 2ghz speed, it means each core have 1 ghz for itself"
Is this true? I thought each core had 2 ghz available for speed.
No. Each core runs at 2GHz. There's no "pool" of speed that's shared.
2 minutes ago, zdemigod said:And... Do pc activities consume "cores" or "threads" in multiple threaded applications. But I also heard of "multi core compilation" this uses cores then (counted in pair of threads if the procesor have 8c/16t?)
It depends on what the application is doing and what it wants. An application creates threads to handle some tasks. A web browser for instance spawns threads for handling network traffic, handling the GUI, rendering the HTML, running the JavaScript, and other things. If these threads have things to run, then the OS will put them on cores that are not working on anything at that moment.
2 minutes ago, zdemigod said:Is there any difference in using cores instead of threads?
When people talk about "threads" in a processor, what they mean is how many threads from an application that can run on the processor at once. So when you see something like a 4 core/8 thread processor, it means it has 4 physical cores, but the entire processor can handle 8 threads in total (split across 2 threads per core).
However the way a core can service two threads at once is that if one thread isn't using all of the execution resources in the core, then the core will see if another thread can use others. So if you have one thread that's doing some simple number crunching with integer numbers, that only takes up some execution resources, leaving the parts that can do floating point with nothing to do. The core then sees if another thread that can use those execution resources is available to run.
In short, for the same number of cores, more threads is better. For the same number of threads, more cores is better. So a 4C/8T processor will do better than a 4C/4T processor, but a 8C/8T processor will do better than a 4C/8T processor.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now