Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import time
- import thread
- lst = [0.0] * 10000
- lst[-33] = 999.9
- def h(x):
- time.sleep(lst[x])
- def g(x):
- h(x)
- def f():
- for j in range(10000):
- g(j)
- for k in range(5):
- thread.start_new_thread(f, ())
- time.sleep(1)
- d = sys._current_frames()
- print d
- for key, value in d.items():
- print '%d:' % (key,)
- while value is not None:
- print '\t', value, value.f_code.co_name
- value = value.f_back
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement