According to the progress of science will continue to update ... although the school may be a bit slow
1, pthread_create (): creates a thread
Header file: #include <pthread.h>
Function declaration:
int pthread_create (* pthread_t the restrict tidp, memory unit // thread ID of the newly created point
const pthread_attr_t * restrict_attr, // set the thread attributes, the default is NULL
void * (* start_rtn) ( void *), // newly created thread run from address start_rtn function
void * arg the restrict); // defaults to NULL, if the above-described function requires parameters, the parameters into a structure and an incoming address as arg
Returns: To create successful return 0, otherwise it returns an error number