上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页
CPU配置信息:frank@ubuntu:~/test/python$ cat /proc/cpuinfo processor : 0 #系统中逻辑处理核的编号 vendor_id : GenuineIntel ... Read More
posted @ 2017-07-01 15:56 suonikeyinsu Views(42344) Comments(1) Diggs(1) Edit
#!/usr/bin/env python #-*- coding:utf-8 -*- ############################ #File Name: test_platform.py #Author: frank #Mail: frank0903@aliyun.com #Created Time:2017-06-05 14:31:31 ####################... Read More
posted @ 2017-06-21 19:22 suonikeyinsu Views(13755) Comments(0) Diggs(0) Edit
1 #!/usr/bin/env python 2 #-*- coding:utf-8 -*- 3 ############################ 4 #File Name: ipscaner.py 5 #Author: frank 6 #Mail: frank0903@aliyun.com 7 #Created Time:2017-06-05 16:06:37 8 #... Read More
posted @ 2017-06-21 19:21 suonikeyinsu Views(2022) Comments(0) Diggs(0) Edit
1 #!/usr/bin/env python 2 #-*- coding:utf-8 -*- 3 ############################ 4 #File Name: getmac.py 5 #Author: frank 6 #Mail: frank0903@aliyun.com 7 #Created Time:2017-06-05 17:10:51 8 ###... Read More
posted @ 2017-06-21 19:18 suonikeyinsu Views(3939) Comments(0) Diggs(0) Edit
在~/.vimrc中添加如上内容。 另外,还需要在创建~/.vim/vim_template/vim_python_header 配置完成后,再vi 1.py 这种在vim中创建文件头的方式也可以用于其他语言。 参考:http://blog.csdn.net/orangleliu/article/d Read More
posted @ 2017-06-21 19:14 suonikeyinsu Views(915) Comments(0) Diggs(0) Edit
环境:gcc (OpenWrt/Linaro GCC 4.8) 以如下的简单代码为例,说明gdb的使用。 1. gdb 下一步的命令 a.执行下一行语句(语句级别) next(或n) 执行下一行语句,如果是函数调用则直接将函数执行完;相当于visual studio调试器中的"Step Over ( Read More
posted @ 2017-06-21 18:46 suonikeyinsu Views(1393) Comments(0) Diggs(0) Edit
lsof list open files lsof 是一个列出当前系统已打开文件的工具。在linux环境下,任何事物都以文件的形式存在,通过文件不仅仅可以访问常规数据,还可以访问网络连接和硬件。所以如传输控制协议 (TCP) 和用户数据报协议 (UDP) 套接字等,系统在后台都为该应用程序分配了一个 Read More
posted @ 2017-06-20 13:21 suonikeyinsu Views(464) Comments(0) Diggs(0) Edit
1. 什么是graph visualization? Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. It has imp Read More
posted @ 2017-06-19 23:08 suonikeyinsu Views(705) Comments(0) Diggs(0) Edit
僵尸进程:子进程退出后,父进程还没有回收子进程的资源,那么这个子进程就处于僵尸状态。Q1:“资源”是些什么?Q2:父进程如何回收子进程的资源? 内核为每个终止子进程保存了一定量的信息,所以当终止进程的父进程调用wait或waitpid时,可以得到这些信息。这些信息至少包括进程ID,该进程的终止状态, Read More
posted @ 2017-06-03 15:04 suonikeyinsu Views(421) Comments(0) Diggs(0) Edit
之前一直没太深入的去理解wait()函数,今天机缘巧合之前又看了看,发现之前没有真正的理解该函数。 众所周知,wait()函数一般用在父进程中等待回收子进程的资源,而防止僵尸进程的产生。 (In UNIX System terminology, a process that has terminat Read More
posted @ 2017-05-21 22:32 suonikeyinsu Views(49213) Comments(0) Diggs(3) Edit
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页