- 博客(9)
- 资源 (2)
- 收藏
- 关注
转载 20个 Unix/Linux 命令技巧
删除一个大文件我在生产服务器上有一个很大的200GB的日志文件需要删除。我的rm和ls命令已经崩溃,我担心这是由于巨大的磁盘IO造成的,要删除这个大文件,输入:12345>/path/to/file.log# 或使用如下格式: > /path/to/file.log# 然
2015-04-23 09:17:00 231
转载 Pthread 多线程总结
1. Thread由下面部分组成:a. Thread IDb. Stackc. Policyd. Signal maske. Errnof. Thread-Specific Data3 Thread Identification1. pthread_t用于表示Thread ID,具体内容根据实现的不同
2015-04-22 09:11:17 401
转载 Linux时间子系统之五:低分辨率定时器的原理和实现
利用定时器,我们可以设定在未来的某一时刻,触发一个特定的事件。所谓低分辨率定时器,是指这种定时器的计时单位基于jiffies值的计数,也就是说,它的精度只有1/HZ,假如你的内核配置的HZ是1000,那意味着系统中的低分辨率定时器的精度就是1ms。早期的内核版本中,内核并不支持高精度定时器,理所当然只能使用这种低分辨率定时器,我们有时候把这种基于HZ的定时器机制成为时间轮:time wheel。虽
2015-04-17 11:05:18 255
转载 宏定义中的#,##
1、在一个预处理器宏中的参数前面使用一个#,预处理器会把这个参数转换为一个字符数组。(原文:When you put a # before an argument in a preprocessor macro, the preprocessor turns that argument into a character array. This,combined with the fact
2015-04-15 13:31:35 378
转载 linux内核线程、轻量级进程和用户进程
转载:http://www.cnitblog.com/tarius.wu/articles/2277.html转载:http://www.fansoo.com/blog/2011/kernel-threads-lightweight-processes-threads-and-linuxthreads-library-users/内核线程内核线程只运行在内核态,不受用户
2015-04-14 09:52:41 338
转载 mod_timer()
Namemod_timer — modify a timer's timeoutSynopsisint mod_timer(struct timer_list * timer, unsigned long expires); Argumentstimerthe timer to be modif
2015-04-08 16:16:58 686
转载 nam问题
1.将nam下configure 中ZLIB版本号改为 和 ns-allinone-2.33中zlib版本一样2.[code omitted because of length]: no event type or button # or keysym while executing"bind Listbox {%W yview scroll [expr
2015-04-03 11:04:33 518
原创 linux下Ns2安装
1.下载ns-allinone-2.33.tar.gz2. 解压 进入ns-allinone-2.33目录3. 运行./install命令4.出现错误一、ld -shared-o libotcl.so otcl.ootcl.o: Infunction `OTclDispatch':/usr/ns-allinone-2.34/otcl-1.13/otcl.c:495:unde
2015-04-02 10:50:34 450
转载 软件开发过程中的C语言细节记录
1.在linux 2.6.38内核的driver/input/keyboard目录下的gpio_keys.c源码中的486行开始如下for (i = 0; i pdata->nbuttons; i++) { struct gpio_keys_button *button = &pdata->buttons[i]; struct gpio_but
2015-04-01 10:57:57 350
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人