Skip to content

Commit fe62512

Browse files
committed
week 09 updates
1 parent e18b22d commit fe62512

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+5063
-11
lines changed
-35.7 KB
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import random
2+
import sys
3+
import threading
4+
import time
5+
6+
lock = threading.Lock()
7+
8+
def write():
9+
lock.acquire()
10+
sys.stdout.write( "%s writing.." % threading.current_thread().name)
11+
time.sleep(random.random())
12+
sys.stdout.write( "..done\n")
13+
lock.release()
14+
15+
16+
while True:
17+
thread = threading.Thread(target=write)
18+
thread.start()
19+
time.sleep(.1)
20+
File renamed without changes.

Examples/week-07-profiling/data_aggregation/containers.py renamed to Examples/week-09-profiling/data_aggregation/containers.py

File renamed without changes.
File renamed without changes.

Examples/week-07-profiling/data_aggregation/pycallgraph.png renamed to Examples/week-09-profiling/data_aggregation/pycallgraph.png

File renamed without changes.
File renamed without changes.

Examples/week-07-profiling/django/benchmark/benchmark/__init__.py renamed to Examples/week-09-profiling/django/benchmark/benchmark/__init__.py

File renamed without changes.

Examples/week-07-profiling/django/benchmark/benchmark/settings.py renamed to Examples/week-09-profiling/django/benchmark/benchmark/settings.py

File renamed without changes.

Examples/week-07-profiling/django/benchmark/benchmark/templates/index.html renamed to Examples/week-09-profiling/django/benchmark/benchmark/templates/index.html

File renamed without changes.

0 commit comments

Comments
 (0)