grab-cores.py: Use threading.Thread to call spam.busy
authorW. Trevor King <wking@tremily.us>
Wed, 17 Apr 2013 16:15:49 +0000 (12:15 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 17 Apr 2013 16:17:47 +0000 (12:17 -0400)
commitadf80bfc06cff100019c94d7be9c938b9110060c
treef6ceabcdac1c3248401e66a6ae705926fd46abbc
parent438984c44ae396ed60ba66172b941c0b997bf2f0
grab-cores.py: Use threading.Thread to call spam.busy

Usually Python threads can only use one core at a time due to the
Python global interpreter lock.  This script allows us to see if
dropping the GIL with Py_BEGIN_ALLOW_THREADS allows us to use multiple
cores simultaneously.
grab-cores.py [new file with mode: 0755]