-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
import time
import gevent.monkey
gevent.monkey.patch_all()
a = time.time()
mc.set('a', 1)
def add(key):
#with lock:
mc.incr(key)
jobs = []
for i in xrange(1000):
jobs.append(gevent.spawn(add, 'a'))
gevent.joinall(jobs)
print mc.get('a')
mc.delete('a')
print time.time() - a
just like the code above, It gives 995 but 1001 as suppose to be. Is there any idea about this issue?
Thanks in advance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels