136  4.  ++-   

.  Pthread      API-.
  ,   - -
   . ,  Sun  
Pthread      Solaris.     
   Pthread,    .

4.7.    

        
 ,     .     -
    ,      -
       .    -
 "  "    .   
,     ,    4.1.

//  4.1.    
//                

#include <iostream>
ft include <pthread.h>

void *taskl(void *X) //    

//  ThreadA.
{

//. . .

cout  "  ."  endl;

}

void *task2(void *X) //    

//  ThreadB.
{

//. . .

cout  "  ."  endl;

}

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

pthread_t ThreadA,ThreadB; //  .

pthread_create(&ThreadA,NULL,taski,NULL); // 
// .
pthread_create (ScThreadB, NULL, task2 , NULL) ;

//  .

pthread_join(ThreadA,NULL); //  
pthread_join(ThreadB,NULL); // .
return (0) ;

}

  4.1        -
 .       ,  -
    ThreadA  ThreadB.   
pthread_create ()      ,   
 (taski  fcask2).  (  )    