i have process in java, tat takes 4 mins complete. 10 such process lined takes around 40 mins. if thread processes 1 thread process, 10 process running parallely, takes around 20 mins complete. isn't suppose take 4 mins complete since process running in parallel?
if threads running on single processor operating system has time slice , context switch. overhead adds time.
there no parallelism until have multiple processors split work. threads can't reduce work on single processor.
Comments
Post a Comment