Linux系统编程——多线程篇
线程线程的创建:#include <pthread.h>int pthread_create(pthread_t * restrict thread, const pthread_attr_t * restrict attr, void *(* start_routine)(void *), void * restrict arg); 成功时返回0,失败时返回其他值thread : 保存新创建线程ID的变量地址值。线程与进程相同,也需要用
原创
2021-04-30 12:07:32 ·
326 阅读 ·
0 评论