Which threading primitive prevents simultaneous access to shared data in Python?
Correct answer
C. Lock
5 views
C. Lock
5 views
A Lock ensures only one thread enters a critical section at a time.
Asked in: Python Interview Advanced
https://docs.python.org/3/library/index.htmlNot sure why the answer is C? Ask here and get an explanation.