1.1 --- a/examples/simple_managed_map.py Sat Sep 15 23:47:05 2007 +0000
1.2 +++ b/examples/simple_managed_map.py Sat Sep 15 23:48:26 2007 +0000
1.3 @@ -6,6 +6,7 @@
1.4
1.5 import pprocess
1.6 import time
1.7 +#import random
1.8
1.9 # Array size and a limit on the number of processes.
1.10
1.11 @@ -21,6 +22,7 @@
1.12 A supposedly time-consuming calculation on 'i' and 'j'.
1.13 """
1.14
1.15 + #time.sleep(delay * random.random())
1.16 time.sleep(delay)
1.17 return i * N + j
1.18
1.19 @@ -30,7 +32,7 @@
1.20
1.21 t = time.time()
1.22
1.23 - # Initialise the results using map with a limit on the number of
1.24 + # Initialise the results using a map with a limit on the number of
1.25 # channels/processes.
1.26
1.27 results = pprocess.Map(limit=limit)