update from Atlas with major reorg

This commit is contained in:
Luciano Ramalho
2015-04-17 21:29:30 -03:00
parent 57902d31b5
commit a786180239
134 changed files with 369 additions and 520 deletions

View File

@@ -0,0 +1,19 @@
import os
from parallelize import parallelize
from time import sleep, time
print('one process:')
t0 = time()
for i in range(12):
print('%2d pid = %d' % (i, os.getpid()))
sleep(.2)
print('elapsed time: %0.2f' % (time() - t0))
print()
print('several processes:')
t0 = time()
for i in parallelize(range(12)):
print('%2d pid = %d' % (i, os.getpid()))
sleep(.2)
print('elapsed time: %0.2f' % (time() - t0))