multi threading and multi core
Possible Duplicate:
Multicores and mulithreads
If a software devoloped with multi threading , Is it true that multicore processor executes that software efficiently by using software threads of operating system ie when i create multiple threads in java those threads are exicuted simultineously by multicore processor by linking these java threads with software threads of OS ?
Is it true that multicore processor executes that software efficiently
I wouldn't say efficiently, as efficiency is a characteristic of the algorithm implemented. So, if we're talking about a poorly parallelized piece of code, it'll be multi thread, it'll run in parallel in a multi core system, but it is not guaranteed that it'll be algorithmically efficient.
when i create multiple threads in java those threads are exicuted simultineously by multicore processor by linking these java threads with software threads of OS ?
Yes, that is just what happens.
链接地址: http://www.djcxy.com/p/36872.html上一篇: Hyper线程CPU +调度器上的硬件线程(逻辑核心)
下一篇: 多线程和多核心