New submission from Brian Kearns <[email protected]>:

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 <[email protected]>
<https://bugs.pypy.org/issue1456>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to