Renamed 'multi_thread()' -> 'syncronized_thread()'
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user