标签:【澳门网上葡京】
  • Serialized by the mutex lock

    Serialized by the mutex lock

    标签:澳门网上葡京 2019-06-16
    import thread, timedef counter(myId, count): for i in range(count): mutex.acquire() print 'thread number %d reporting in at %d...' % (myId, time.clock()) time.sleep(1) mutex.release()print time.clock()mutex = thread.allocate_lock()for i in...
共1页/1条