W
W
wawa2018-11-06 15:01:12
Python
wawa, 2018-11-06 15:01:12

How does threading.Condition work?

https://docs.python.org/3/library/threading.html#c... - I read it but didn't understand it.
A pair of acquire/release methods causes bewilderment. Judging by the examples, even though they cause resp. methods of [R]Lock lying inside the Condition, other threads, having repeatedly called acquire on an unreleased Condition, are not blocked, but are blocked only for wait. It is not clear why they (a pair of acquire / release) are needed at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2018-11-06
@deliro

www.quizful.net/post/thread-synchronization-in-python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question