From 77e4934ba5b3f7e86e617d91e7748623ad29dafc Mon Sep 17 00:00:00 2001 From: Jan Lerking Date: Fri, 16 Feb 2018 21:15:19 +0100 Subject: [PATCH] Renamed 'multi_thread()' -> 'syncronized_thread()' --- multiprocessing_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/multiprocessing_test.py b/multiprocessing_test.py index bc5a4b8..9b73d04 100755 --- a/multiprocessing_test.py +++ b/multiprocessing_test.py @@ -118,7 +118,7 @@ def single_thread(): process_files(sourcedir, destdir) print('Single thread process time: '+str(time.time()-t1)) -def multi_thread(): +def syncronized_thread(): global filelist global exitFlag @@ -161,7 +161,7 @@ sourcedir = '/usr/include' destdir = '/data_2/include' print(cpu_info) -single_thread() #2543 files - Single thread process time: 1.3732633590698242 +single_thread() #2543 files - Single thread process time: 1.3732633590698242 sec. -multi_thread() +syncronized_thread() #2543 files - Syncronized 5 threads process time: 80.25179100036621 sec.