04 2021 档案

摘要:select系统调用 #include <sys/select.h> int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); nfds:是指集合中所有文件 阅读全文
posted @ 2021-04-17 20:38 Vzf 阅读(83) 评论(0) 推荐(0)
摘要:1.使用st-thread 我们用一个简单的demo研究一下st框架。 #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include "st.h" static void *_thread(void *arg) { prin 阅读全文
posted @ 2021-04-14 08:30 Vzf 阅读(581) 评论(0) 推荐(0)