Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
1692 Discussions

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
Black Belt

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