Multiprocessing takes higher execution time

Steve Holden steve at holdenweb.com
Wed Jan 7 06:49:46 EST 2009


Sibtey Mehdi wrote:
> Hi,
> 
>  
> 
> I use multiprocessing to compare more then one set of files.
> 
> For comparison each set of files (i.e. Old file1 Vs New file1) I create
> a process,
> 
> Process(target=compare, args=(oldFile, newFile)).start()
> 
> It takes 61 seconds execution time.
> 
>  
> 
> When I do the same comparison without implementing multiprocessing, it
> takes 52 seconds execution time.
> 
>  
> 
> The parallel processing time should be lesser.
> 
>  
> 
> I am not able to get advantage of multiprocessing here.
> 
>  
> 
> Any suggestions can be very helpful.
> 
My first suggestion would be: show us some code. We aren't psychic, you
know.

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list