I know OS schedules thread and CPU executes it and there is direct relationship between no of threads and no of cores.Is that mean single processor with multiple cores (say n) is same as that of n single core processors, I mean In both of these cases processing ability is same or there is some difference?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
yes, there is a difference, but for normal programming decisions the difference is almost insignificant and too low-level.
Intel® 64 and IA-32 Architectures Software Developer’s Manual contains some explanation in chapters "Intel® Hyper-Threading Technology" and "Multi-Core Technology"
Similar questions:
- SuperUser: Hyper-Threading and Dual-Core, What's the Difference?
- Stack Overflow: multi-CPU, multi-core and hyper-thread.
What typical programmers might care about when solving parallel programming problems/questions:
- Intel® Developer Zone: Performance
- Intel Guide for Developing Multithreaded Applications
Related articles:
- Wikipedia: Multi-core processor
- Wikipedia: Hyper-threading