Salut tout le monde,
j'aimerai comment peut-on partager l'exécution des thread ( qu'on définit nous même dans un programme ) sur deux cœurs dans le cas d'un µP multicoeurs.
j'ai besoin d'un coup de main :roll:
Version imprimable
Salut tout le monde,
j'aimerai comment peut-on partager l'exécution des thread ( qu'on définit nous même dans un programme ) sur deux cœurs dans le cas d'un µP multicoeurs.
j'ai besoin d'un coup de main :roll:
Quel est ton système d'exploitation ?
Via la fonction SetThreadAffinityMask.
Une remarque au passage :
Performance Effect of Localized Thread Schedules in Heterogeneous Multi-Core ProcessorsCitation:
We previously proposed a heterogeneous 16-core architecture and a nearest neighbor priority-based thread scheduling algorithm which values core affinity and permits inter-core thread migration in [1]. In this paper, we run simulation experiments under localized core affinities limited to a very small number of specific cores within core classes. These localized schedules represent applications that are user- or system-confined to specific cores or their vicinity. They may also represent stressful scenarios with high contention to specific - and possibly scarce - cores with unique functionality or computational might. The results indicate that under these localized initial core affinity scenarios, non-migratory thread scheduling algorithms perform much worse than non-affinity algorithms while the algorithms which consider core affinity and allow inter-core thread migration are best.
Sibai, F.N.
Innovations in Information Technology, 2007. IIT apos;07. 4th International Conference on
Volume , Issue , 18-20 Nov. 2007 Page(s):292 - 296
Digital Object Identifier 10.1109/IIT.2007.4430377
PS : qui rejoint d'ailleurs la remarque de MSDN.