6.2.  PVM   C++ 227

Program, Multiple-Data  ,   )  -
       .  , 
 C++       
  ,        -
.     ++-  
        - -
 .      
   SPMD.     SPMD,  -
   .      
     . ,      SPMD
      ( ),     
            
( ,    !). ,   6.3  
PVM-    ,      (,)
: (24,9), (24,12), (7,4)  (7,3).  ,   6.3 
   24 ,   9   12.   
   7    ,   4   3. 
  (,)    $ 6.1 (" ").

//  6.3.     

int main(int argc,char *argv[])
{

int RetCode,Taskld[4] ,-

RetCode = pvm_spawn("pvm_generic_combination",NULL,0,"",
4,TaskId) ;

if(RetCode == 4){

colorCombinations(Taskld[0],9) ;

colorCombinations(Taskld[l],12);

numericCombinations(Taskld[2],4) ;

numericCombinations(Taskld[3],3) ;

saveResult(Taskld[0]) ;

saveResult(Taskld[l]) ;

saveResult(Task!d[2]) ;

saveResult(Taskld[3]) ;

pvm_exi t() ;

}
else{

cerr  "    ."
 endl;

pvm_exit () ;

}
return(0) ;

)

  6.3      PVM-:

pvm_spawn("pvm_generic_combination",NULL,0,"",4,TaskId);

         
pvm_generic_combination.  NULL    pvm_spawn() -
,    argv [ ]    .  0  
 pvm_spawn () ,    ,   