[pypy-issue] [issue1456] thread checkinterval and its pypy modifications don't work well

Brian Kearns tracker at bugs.pypy.org
Tue Apr 16 22:10:06 CEST 2013


New submission from Brian Kearns <bdkearns at gmail.com>:

between pypy default checkinterval of 10000 * 100 = 1M and the jit adapted tick 
counter that can decrease to 1, threads can end up not releasing the gil for a 
long time. this script takes forever to run/start additional threads on pypy on 
linux64. on osx, behavior seems different and more like cpython, for whatever 
reason (maybe another bug?)

import os
import thread
import sys

def f():
    while 1:
        os.getlogin()

for i in range(5):
    print i
    thread.start_new_thread(f, ())

print 'done'

----------
messages: 5588
nosy: bdk, pypy-issue
priority: performance bug
status: unread
title: thread checkinterval and its pypy modifications don't work well

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1456>
________________________________________


More information about the pypy-issue mailing list