搜索资源列表
example
- 利用共享内存实现多线程间通信。 主线程派生子线程后即处于休眠状态,等待子线程结束时发出结束信号唤醒。在被唤醒后,主线程向屏幕输出结束信息! 线程A向共享内存中写入A~Z的大写字母。 线程B通过共享内存接收这些字母,并将其保存到/test.dat文件中。 注意线程之间的同步互斥! -Using shared memory communication between multi-threading. Derived from sub-thread after main thread
1
- 本脚本支持管道和文件的编码转换,结果输出到屏幕。现在参数支持不多,但是有参数完整性的检测功能,可以完成多参数的无序调用。采用了新的脚本释放方法,源文件有改动时会自动更新脚本。还有错误消息和依赖文件完整性检查机制。希望这些小技巧对大家编写批处理有所帮助。-The scr ipt and documentation to support the pipeline code conversion, the results output to the screen. Parameters now sup
test
- 创建两个子进程,分别计算1~5000和5000~1W的素数 通过信号,用父进程专门完成数的保存.同时开启一个进程读文件, * 并讲数据输出到屏幕(保证不被其它信号干扰) -Create two sub-processes, respectively, calculated 1 ~ 5000 and 5000 ~ 1W the prime number of the parent process through the signal specifically to complete t
lightningserver0.1.1.tar
- 1.使用了libevent库,支持大并发网络请求 2.网络操作与数据处理分离 3.使用线程池进行数据处理 4.目前支持tcp数据流的解包操作: 4.1支持用户自定义的请求格式 4.2支持以\r\n结尾的行请求; 5.使用time wheel实现了超时机制; 6.添加对log的控制:是否打开log;是否输出到屏幕 7.支持设置允许的最大连接数 8.添加mac系统支持-1 Use the libevent library that