3.10.      107

//...

system("Taski ..."); //   

//   .

// ,    .  

// ,     

//   .

//        

// .

char *const argv4[] = {"TaskType4",....NULL};

char *const argv5[] = {"TaskTypeS",...,NULL} ;

char *const argv6[] = {"TaskType6",....NULL};

system("TaskType2 ...");

system("TaskType3 ...");

//  .
posix_spawnattr_init(&Attr) ;

posix_spawn_?ile_actions_init(&FileActions) ;

posix_spawn(&Pid,"TaskType4",&FileActions,&Attr,argv4,

NULL) ;

posix_spawn(&Pid,"TaskTypeS",&FileActions,&Attr,argv5,

NULL) ;

if(Y){

posix_spawn(&Pid,"TaskType6",&FileActions,&Attr,
argv6,NULL) ;

}

//   ,  

//  "".

wait(&stat) ;

wait(&stat) ;

wait(&stat) ;

return(0) ;

}

//  TaskType-   .

//. . .

int mainfint argc, char *argv[])

{

int Rt;

//. . .
if(argv[l] == X){

//  .

II...

posix_spawn(&Pid,"TaskTypeX",&FileActions,&Attr,....
NULL) ;

}
else{

//  .