父子进程之间的参数传递和数据返回 pthread_create & pthread_join

本身睡不着敲着玩的,第一个程序是主线程传递一个结构体地址给子线程,第二个传递字符串,第三个是子线程经过pthread_exit()传递数据,而后pthread_join阻塞那里捕获。数据结构  int pthread_create(pthread_t *restrict thread,                   const pthread_attr_t *restrict attr,  
相关文章
相关标签/搜索