concept each process in category parallel computing

appears as: Each process
Parallel and High Performance Computing

This is an excerpt from Manning's book Parallel and High Performance Computing.

Distributed Computing versus Parallel Computing: There are parallel applications that use a lower-level approach to parallelism called distributed computing. We define distributed computing as a set of loosely-coupled processes that cooperate via operating system level calls. While distributed computing is a subset of parallel computing, the distinction is important. Examples of distributed computing applications include peer-to-peer networks, the World-Wide Web, and internet mail. The Search for Extraterrestial Intelligence SETI@home is just one example of many scientific distributed computing applications.

Listing 8.14 Initializing new MPI datatype and operator for Kahan summation
GlobalSums/globalsums.c
14 struct esum_type{    #A
15    double sum;    #A
16    double correction;    #A
17 };    #A
18 
19 MPI_Datatype EPSUM_TWO_DOUBLES;   #B
20 MPI_Op KAHAN_SUM;    #C
21 
22 void kahan_sum( struct esum_type * in, struct esum_type * inout, int *len,
23     MPI_Datatype *EPSUM_TWO_DOUBLES)    #D
24 {
25    double corrected_next_term, new_sum;
26    corrected_next_term = in->sum + (in->correction + inout->correction);
27    new_sum = inout->sum + corrected_next_term;
28    inout->correction = corrected_next_term - (new_sum - inout->sum);
29    inout->sum = new_sum;
30 }
31 
32 void init_kahan_sum(void){
33    MPI_Type_contiguous(2, MPI_DOUBLE, &EPSUM_TWO_DOUBLES);    #E
34    MPI_Type_commit(&EPSUM_TWO_DOUBLES);    #E
35 
36    int commutative = 1;    #F
37    MPI_Op_create((MPI_User_function *)kahan_sum, commutative, &KAHAN_SUM);    #F
38 }