随笔分类 -  linux并发应用程序开发

做产品 核心在应用 认清技术重点
摘要:使用c库操作文件 #include "stdafx.h" #include <stdio.h> #include <pthread.h> #include <assert.h> #include <windows.h> #include <string.h> static void* Functio 阅读全文
posted @ 2020-04-06 11:30 卷哭你 阅读(567) 评论(0) 推荐(0)
摘要:设备号 进程号 线程号 姓名 万物有个名字 万物通过名字来进行识别 多个同样性质的东西。 阅读全文
posted @ 2020-04-05 21:29 卷哭你 阅读(284) 评论(0) 推荐(0)
摘要:系统调用的函数api头文件 kernel\include\uapi\asm-generic #include <unistd.h> #include <sys/syscall.h> #include <sys/types.h> #include <signal.h> #include <stdio. 阅读全文
posted @ 2020-04-05 17:02 卷哭你 阅读(170) 评论(0) 推荐(0)
摘要:IO就是读数据或者写数据 包含一个时间概念在里面 包含一个system概念 读数据的策略 阻塞和非阻塞时设备访问的两种基本形式。使用这两种形式,驱动程序可以灵活地支持阻塞和非阻塞的访问。select函数底层实现,里面实现用就是等待队列。 阻塞调用时指调用结果返回之前,当前线程挂起。函数只有得到结果之 阅读全文
posted @ 2020-04-05 15:44 卷哭你 阅读(2018) 评论(0) 推荐(0)