注意必须使用waitpid,否则会出现rm的僵尸进程。 DeleteCvsFile(const char *csvfilename) { int ac = 0; char *argv[10]; char *envp[10]; argv[ac++] = "-rf"; argv[ac++] = csvf ...
分类:
其他好文 时间:
2019-11-05 16:45:41
阅读次数:
152
猫宁!!! 参考:http://cn.linux.vbird.org/linux_basic/0440processcontrol.php 1-简单说明什么是程序 (program) 而什么是程序 (process)? 程序 (program) 是系统上面可以被运行的文件,由於 Linux 的完整档 ...
分类:
系统相关 时间:
2019-11-05 13:41:54
阅读次数:
111
进程:通俗理解一个运行的程序或者软件,进程是操作系统资源分配的基本单位 1.1、导入进程模块 import multiprocessing 1.2、Process进程类的语法结构如下: Process([group[, target[, name[,args[,kwargs]]]]]) group: ...
分类:
编程语言 时间:
2019-11-05 00:53:50
阅读次数:
72
1. 在文章开头给出代码仓库中项目地址 代码仓库项目地址 https://github.com/ding-yi520/feiji1 2. 给出PSP表格,分析估计值与真实值的区别 PSP2.1 Personal Software Process Stages 预估耗时(分钟) 实际耗时(分钟) Pl ...
分类:
其他好文 时间:
2019-11-04 19:44:34
阅读次数:
88
1、IO介绍 对于一个network IO (这里我们以read举例),它会涉及到两个系统对象,一个是调用这个IO的process (or thread),另一个就是系统内核(kernel)。当一个read操作发生时,该操作会经历两个阶段: 服务端: 客户端: 非阻塞IO: #服务端 from so ...
分类:
其他好文 时间:
2019-11-04 19:37:43
阅读次数:
143
我们传统的前端更多的是用javascript实现各种复杂动画,自从有了Css3transition和animation以来,前端开发在动画这一块有了更高的自由度和格局,对动画的开发也越来越容易。这篇文章就让我们汇总一下使用Css3实现的各种特效。1.实现内部虚线边框知识点:outline核心代码.dash-border{width:200px;height:100px;line-height:10
分类:
Web程序 时间:
2019-11-03 22:08:30
阅读次数:
124
1 新建service配置文件 vi /etc/systemd/system/node.service [Unit]Description=My super nodejs app [Service]# set the working directory to have consistent rela ...
分类:
Web程序 时间:
2019-11-03 12:25:08
阅读次数:
100
#启动一个线程t=threading.Thread(target=cpu_app,args=()) t.daemon = True t.start()#打印出当前线程的名称和id print(threading.currentThread().name) print(threading.curren ...
分类:
编程语言 时间:
2019-11-03 11:14:23
阅读次数:
130
What is Web Scraping This is also referred to as web harvesting and web data extraction. This is the process of automatically downloading a web page's ...
分类:
编程语言 时间:
2019-11-03 01:13:20
阅读次数:
96
介绍: IPC$(Internet Process Connection) 是共享 " 命名管道 " 的资源,它是为了让进程间通信而开放的命名管道,通过提供可信任的用户名和口令,连接双方可以建立安全的通道并以此通道进行加密数据的交换,从而实现对远程计算机的访问。 四种默认共享: 共享名 资源 注解 ...
分类:
其他好文 时间:
2019-11-03 00:56:38
阅读次数:
121