mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 22:20:22 -04:00
cleanup names for dirs
This commit is contained in:
parent
0904ec1dc4
commit
0da3cbd74a
80 changed files with 62 additions and 2263 deletions
12
boilerplates-concurrence/deadlock_example.py
Normal file
12
boilerplates-concurrence/deadlock_example.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import threading
|
||||
|
||||
l = threading.Lock()
|
||||
print("Before first lock acquire.")
|
||||
|
||||
l.acquire()
|
||||
print("Before second lock acquire.")
|
||||
|
||||
l.acquire()
|
||||
print("Lock was acquired twice")
|
Loading…
Add table
Add a link
Reference in a new issue