Пример #1
0
def thing (x):
    global z
    while 1:
        W ('[%d]' % (z,))
        z += x
        shrike._yield()
    return z
Пример #2
0
def thing1 (c):
    global n
    while c:
        r = random.randint (0, 100)
        n -= r
        c -= 1
        shrike._yield()
    print 'exited thing1'