首页 文章 进程、线程

进程、线程

2023-03-23 13:36  浏览数:648  来源:小键人13156198    

unistd.h stdio.h main argc argv sleep(1); while printf(""); pid_t fork(void); void e
xit(int status);void _exit(int status); pid_t wait(int *status); #include <sys/wait.h
> #include <pthread.h> int pthread_create(pthread_t *thread, const pthread_attr_t *att
r, void *(*routine)(void *), void *arg);void pthread_exit(void *retval); pthread_t pthr
ead_self(void); pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*rou
tine)(void *), void *arg); int pthread_join(pthread_t thread, void **retval);int pthre
ad_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t * attr);int pthread_mu
tex_destroy(pthread_mutex_t *mutex) int pthread_mutex_lock(pthread_mutex_t *mutex);int p
thread_mutex_unlock(pthread_mutex_t *mutex);int pthread_cond_wait(pthread_cond_t *restrict
cond, pthread_mutex_t *restrict mutex);int pthread_cond_timedwait(pthread_cond_t *restri
ct cond,​ pthread_mutex_t *restrict mutex, const struct timespec *restrict abstime);int pt
hread_cond_signal(pthread_cond_t *cond);int pthread_cond_broadcast(pthread_cond_t *cond);



声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)