How to make a foreign function run as fast as possible in Windows?

Gene Heskett gheskett at shentel.net
Tue Sep 27 23:56:15 EDT 2016


On Tuesday 27 September 2016 22:13:51 jfong at ms4.hinet.net wrote:

> eryk sun at 2016/9/27 11:44:49AM wrote:
> > The threads of a process do not share a single core. The OS
> > schedules threads to distribute the load across all cores....
>
> hmmm... your answer overthrow all my knowledge about Python threads
> completely:-( I actually had ever considered using ProcessPoolExecutor
> to do it.
>
> If the load was distributed by the OS schedules across all cores, does
> it means I can't make one core solely running a piece of codes for me
> and so I have no contol on its performance?

Someone in the know would have to elaborate on whether python knows 
about, or can cooperate with the boot time parameter 'isolcpus ='.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>



More information about the Python-list mailing list