ダ
py3
Source:
import threading
c = 1
def foo():
global c
c += 1
print(c)
threading.Thread(target=foo).start()
threading.Thread(target=foo).start()
Result:
2
3
Size: a a a
ダ
py3
import threading
c = 1
def foo():
global c
c += 1
print(c)
threading.Thread(target=foo).start()
threading.Thread(target=foo).start()
2
3
GF
ダ
ダ
ダ
GF
GF
ダ
py3
import threading
c = 1
def foo():
global c
c += 1
print(c)
threading.Thread(target=foo).start()
threading.Thread(target=foo).start()
2
3
ダ
GF
ダ
ダ
OD
ダ
ダ
ダ
ダ
ダ