Hi All,
Please bear with me while I explain this, this is newbie thingy.
I have Intel I5 multi-core.
What I am trying to understand is that if I want to take advantage of those cores when writing a program, I need to use multi-threading? Or is it parallel programming technique?
I am trying to learn threads. While I can write programs and examples but I want to understand the core bit.
I understand that the kernel is responsible for binding threads to cores?
or is it processes only?
How can I see how cores are utilized?
For example, suppose my programs have 8 long running threads (to simplify), is it possible to make them use those cores? or is it the kernel responsibility to do that?
in FreeBSD how can I see the statistics for those cores?
Thanks for your patience
Please bear with me while I explain this, this is newbie thingy.
I have Intel I5 multi-core.
What I am trying to understand is that if I want to take advantage of those cores when writing a program, I need to use multi-threading? Or is it parallel programming technique?
I am trying to learn threads. While I can write programs and examples but I want to understand the core bit.
I understand that the kernel is responsible for binding threads to cores?
or is it processes only?
How can I see how cores are utilized?
For example, suppose my programs have 8 long running threads (to simplify), is it possible to make them use those cores? or is it the kernel responsibility to do that?
in FreeBSD how can I see the statistics for those cores?
Thanks for your patience