180  4.  ++-   

4.11.5.   

 ,  ,    "-
"        
.    -    
  .       
:     -.

            -
- (, ).     
  (,   ),  
-  .       -
 .       4.10.

//  4.10.    
//               

#include <pthread.h>
^include <iostream>
ttinclude <unistd.h>

void *taskl(void *);

void *task2(void *);

class multithreaded_object
{

pthread_t Threadi,Thread2 ;

public:

multithreaded_object(void) ;

int cl(void) ;

int c2(void) ;

II...
};

CTultithreaded_object::multithreaded_object(void)
{

//. ..

pthread_create(&Threadl,NULL,taski,NULL) ;

pthread_create(&Thread2,NULL,task2,NULL) ;

pthread_join(Threadi,NULL) ;

pthread_join(Thread2,NULL) ;

//.. .

}

int mulfcithreaded_object::cl(void)
{

//  .

return(1) ;

}

int multithreaded_object::c2(void)

{

//  .
return(1);