2 ms·
Only if you have multiple threads/processes/coroutines sharing resources.
by xapata 10y ago
Only if you have multiple threads/processes/coroutines sharing resources.
- DasIch 10y ago"Only"? You need locks in exactly the same scenarios as you do when you use multiple threads.
- xapata 10y agoGood point. I should have said that asyncio allows patterns that use fewer shared resources. Actually... I take that back. Asyncio is solving a different problem than the locking of shared resources.