码迷,mamicode.com
首页 >  
搜索关键字:unix环境    ( 500个结果
copy-on-write(写时拷贝技术)
今天看《Unix环境高级编程》的fork函数与vfork函数时,看见一个copy-on-write的名词,貌似以前也经常听见别人说过这个,但也一直不明白这究竟是什么东西。所以就好好在网上了解了下,也算明白个大概,先记录下来. 转载自http://www.cnblogs.com/biyeymy...
分类:其他好文   时间:2015-02-07 17:17:28    阅读次数:117
UNIX环境高级编程11.5线程终止
// threads/exitstatus.c 11-2 #include "apue.h" #include void* thr_fn1(void* arg) { printf("thread 1 returning\n"); /* return a variable of type void* ...
分类:编程语言   时间:2015-02-06 23:09:43    阅读次数:197
UNIX环境高级编程第11章线程
程序清单11-1打印线程ID// threads/threadid.c 11-1 #include "apue.h" #include pthread_t ntid; void printids(const char* s) { printf("%d ", (unsigned int)ntid); ...
分类:编程语言   时间:2015-02-06 21:43:01    阅读次数:339
【转】apue《UNIX环境高级编程第三版》第一章答案详解
原文网址:http://blog.csdn.net/hubbybob1/article/details/40859835大家好,从这周开始学习apue《UNIX环境高级编程第三版》,在此,我要感谢网易的一个工程师朋友和室友,没有他们,我不会开始真正的学习这本书,希望大家以后开始慢慢进步。废话少说,直...
分类:其他好文   时间:2015-02-06 21:40:22    阅读次数:197
UNIX环境高级编程第10章信号10.3singal函数
// signals/sigusr.c 10-1 #include "apue.h" static void sig_usr(int); /* one handler for both signals */ int main(void) { if (signal...
分类:其他好文   时间:2015-02-06 20:16:36    阅读次数:176
UNIX环境高级编程8.10exec函数
// proc/exec1.c 8-8 #include "apue.h" #include const char* env_init[] = { "USER=unknown", "PATH=/home/sunyj/apue/proc/", NULL }; int main(void) { pid_...
分类:其他好文   时间:2015-02-06 16:30:55    阅读次数:131
UNIX环境高级编程8.9竞争条件
这一节,书中的TELL_WAIT与TELL_PARENT,TELL_CHILD没有弄清楚,到底是如何实现的同步机制。 // proc/tellwait1.c 8-6 #include "apue.h" static void charatatime(const char *); int main(v...
分类:其他好文   时间:2015-02-06 14:38:13    阅读次数:173
用 Python写 daemon
转自http://chowroc.blogspot.com/2007/05/python-how-to-write-daemon.html最近用 Python 可能要写 daemon,找资料先看看。参照《UNIX 环境高级编程》第十三章:(1) 首先做的是调用 fork,然后使父进程 exit。这样...
分类:编程语言   时间:2015-02-05 18:16:43    阅读次数:103
代码格式化
在Linux/Unix环境下,可以使用indent工具来格式化代码,看起来更规范。安装indent很简单:sudo apt-get install indent使用indent的方法也很简单:indent [参数][源文件] 或 indent [参数][源文件][-o 目标文件]常用的命令为:ind...
分类:其他好文   时间:2015-01-30 22:16:57    阅读次数:182
UNIX环境高级编程8.5exit 8.6wait waitpid
.....
分类:其他好文   时间:2015-01-30 19:38:07    阅读次数:442
500条   上一页 1 ... 30 31 32 33 34 ... 50 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!