Community
cancel
Showing results for 
Search instead for 
Did you mean: 
pango
Beginner
45 Views

Is "Multi Processes" has the same performance with "Multi Threads"?

I want to know, if I create some child processes to do a work,is it has the same performance with creating some child threads to do? Is "Multi Processes" Equals to "Multi Threads" in multi core platform?
0 Kudos
1 Reply
jimdempseyatthecove
Black Belt
45 Views

This would depend on the application.

Multi-threads by typical deffinition share memory in the same virtual address spacewhereas multi processes have different independent virtual address spaces.

If the application can be divided into processies that do not require rapid consolidation of results data then either system may be equally fast. The less the frequency of consolidation of results data might favor muilti processes as they can be run on completely seperate systems (i.e. no sharing of memory bandwidth).

However, if there is a high degree of rapid consolidation of results data then multi threads with shared memory would perform better.

Jim Dempsey

Reply