// 开启协程化,文件操作,sleep,Mysqli,PDO,streams等都变成异步IO Co::set(['hook_flags'=> SWOOLE_HOOK_ALL]); $s = microtime(true); // 创建协程容器 Co\run(function() { // 开启100 ...
分类:
其他好文 时间:
2020-07-11 17:23:32
阅读次数:
79
嵌入式Linux设备驱动程序:用户空间中的设备驱动程序 Embedded Linux device drivers: Device drivers in user space Interfacing with Device Drivers Device drivers in user space 用 ...
分类:
系统相关 时间:
2020-07-11 13:04:44
阅读次数:
95
ifconfig //查ip ifconfig eth0 192.168.20.40 //ip改为同网段 mount -t nfs -o nolock 192.168.20.30:/home/share /mnt/ cd /mnt/test ...
分类:
其他好文 时间:
2020-07-11 13:03:54
阅读次数:
55
管道:实用程序服务和数据结构 Pipes: utility services and data structures 管道公用设施 Nucleus RTOS有四个API调用,它们提供与管道相关的实用程序函数:重置管道、返回有关管道的信息、返回应用程序中管道的数量以及返回指向应用程序中所有管道的指针。 ...
分类:
其他好文 时间:
2020-07-11 10:01:53
阅读次数:
59
inter process communication one host: signal semaphor shm: shared memory different host: rpc: remote procedure call 同样基于socket socket ...
分类:
其他好文 时间:
2020-07-11 00:17:33
阅读次数:
85
有的时候没有什么毅力,也很浮躁,写题也写不出所以然 记录一些自己想出来的 1 #include <math.h> 2 #include <stdio.h> 3 int main() 4 { 5 int n; 6 char c; 7 scanf("%d %c", &n, &c); 8 int bott ...
分类:
其他好文 时间:
2020-07-11 00:11:14
阅读次数:
46
一. 今天继续学习算法; 1. 查找,一般我们采用的是顺序查找的方法,这种方法是比较简单,但是效率却很低;一般就是从第一个数开始与想要查找的那个数进行比较,当遇到相同的时候则就成功查找了; 另一种比较高效的方法就是使用二分法; (1)使用这种方法首先要对元素进行排序; (2)之后要确定元素的中间位置 ...
分类:
编程语言 时间:
2020-07-10 23:59:46
阅读次数:
95
<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docume ...
分类:
Web程序 时间:
2020-07-10 21:18:47
阅读次数:
124
CSS学习之选择器优先级与属性继承 选择器优先级 其实选择器是具有优先级的,我们来看下面这一组案例: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width ...
分类:
Web程序 时间:
2020-07-10 21:14:53
阅读次数:
68
Title <script src="js/a.js"></script> ...
分类:
其他好文 时间:
2020-07-10 20:49:55
阅读次数:
76