There's more...

The differences between lock and RLock are as follows:

  • A lock can only be acquired once before it must be released. However, RLock can be acquired multiple times from the same thread; it must be released the same number of times in order to be released.
  • Another difference is that an acquired lock can be released by any thread, whereas an acquired RLock can only be released by the thread that acquired it.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.81.206