Task A: Compute factorial(2)
SLEEP 2018-10-22 12:27:08.493247
Task A: Compute factorial(3)
SLEEP 2018-10-22 12:27:09.494627
Task A: factorial(3) is 6
Task B: Compute factorial(2)
SLEEP 2018-10-22 12:27:10.495621
Task B: Compute factorial(3)
SLEEP 2018-10-22 12:27:11.497029
Task B: Compute factorial(4)
SLEEP 2018-10-22 12:27:12.498403
Task B: factorial(4) is 24
Total time: 5.007719993591309
z000@z:~/prj/python/parralel$ ./main.py
Task A: Compute factorial(2)
SLEEP 2018-10-22 12:27:25.535878
Task A: Compute factorial(3)
SLEEP 2018-10-22 12:27:26.537266
Task A: factorial(3) is 6
Task B: Compute factorial(2)
SLEEP 2018-10-22 12:27:27.538705
Task B: Compute factorial(3)
SLEEP 2018-10-22 12:27:28.540087
Task B: Compute factorial(4)
SLEEP 2018-10-22 12:27:29.540672
Task B: factorial(4) is 24
Total time: 5.007037162780762