228  6.    ...

   .  Taskid  , -
     ,    -
   pvm_spawn ()     -
 PVM-.   6.3      
colorCombinations ()  numericCombinations ().  " " PVM-.
  colorCombinations ()    6.4.

//  6.4.   colorCombinations

void colorCombinations(int Taskid,int Choices)
{ 

int Messageld =1;

char *Buffer;

int Size;

int N;

string Source("blue purple green red yellow orange

silver gray ") ;

Source.append("pink black white brown light_green

aqua beige cyan ") ;

Source.append("olive azure magenta plum orchid violet

maroon lavender");

Source.append("\n") ;

Buffer = new char[(Source.size() + 100)];

strcpy(Buffer,Source.c_str()) ;

N = pvm_initsend(PvmDataDefault);

pvm_pkint(&Choices,1,1) ;

pvm_send(Taskid,Messageld) ;

N = pvm_initsend(PvmDataDefault);

pvm_pkbyte(Buffer,strlen(Buffer), 1) ;

pvm_send(Taskid,Messageld) ;

delete Buffer;

}

  6.3      colorCombinations (). -
    PVM-     :

(24,9)  (24,12).  PVM-   1 307504  -
,   2 704 156.    ,   
 pvm_spawn ().    . , -
 pvm_generic_coiribination (   colorCombinations())
  ,       . 
   ""  numericCombinations (),   -
 6.5,          . 
 6.3      numericCombinations (). 
 (7,4) ,    (7,3).

//  6.5.  PVM-  
//               

void numericCombinations(int Taskid,int Choices)
{

int Messageld = 2;

int N;

double ImportantNumbers[7] =

(3.00e+8,6.67e-ll,1.99e+30,