ddif=install-x86-minimal-20130528.isoof=/dev/sdbbs=4M
分类:
其他好文 时间:
2014-09-25 10:54:29
阅读次数:
158
today, I write code for a day ,I'm very tired,but I am very happy .Although,some problem haunt me, today is a usually day for me .I will adhere every ...
分类:
其他好文 时间:
2014-09-25 01:23:57
阅读次数:
167
http://blog.csdn.net/hongchangfirst/article/details/11599369我们先来看看如果不使用内存映射文件的处理流程是怎样的,首先我们得先读出磁盘文件的内容到内存中,然后修改,最后回写到磁盘上。第一步读磁盘文件是要经过一次系统调用的,它首先将文件内容从...
分类:
其他好文 时间:
2014-09-25 01:12:57
阅读次数:
174
write用的是文件描述符,fwrite用的是文件流(或者叫文件指针)fopen返回指针,open返回文件描述符(整数).fread是带缓冲的,read不带缓冲.fwrite() 是先写到用户空间缓冲区,等满了再调用 write()fwrite() 写的可以用 fflush() 刷到内核态。你如果用...
分类:
其他好文 时间:
2014-09-24 18:45:57
阅读次数:
174
一、开启socketphpinfo();查看是否开启了socket扩展,否则在php.ini中开启。二、服务器端代码的写法server send:welcome"; socket_write($msgsock, $msg, strlen($msg)); echo 'read client messa...
分类:
Web程序 时间:
2014-09-24 18:45:37
阅读次数:
299
第五十一题Write a C function which does the addition of two integers without using the '+' operator. You can use only the bitwise operators.(Remember the g...
分类:
其他好文 时间:
2014-09-24 00:51:55
阅读次数:
253
一、window对象Wondow.navigate(url); 跳转页面(与超链接的区别:可以加逻辑条件)Vara=Math.random(); 0-1之间随机数Vara=paramInt(Math.random()*10000)%3随机0,1,2Document.write(a);Window.m...
#!/usr/bin/pythonimportreimportosimportsysimportpycurldefbuffer_line(monitor_log):buf=open("/data0/webinternal_monitor/%s"%monitor_log).read()bytes=os.popen(‘wc-c/data0/logs/%s‘%monitor_log).read().split("")[0]ifint(bytes)<int(buf):return0else:returnint(..
分类:
其他好文 时间:
2014-09-23 17:31:15
阅读次数:
234
The argument of write has to be a string, so if we want to put other values in a file, we have to convert them to strings. The easiest way to do that ...
分类:
其他好文 时间:
2014-09-23 15:23:24
阅读次数:
171
本文主要分析内存以及I/O相关的系统调用和库函数的实现原理,根据原理给出在使用过程中需要注意的问题和优化的侧重点,本文涉及到的系统调用包括readahead,pread/pwrite,read/write,mmap,readv/writev,sendfile,fsync/fdatasync/msync,shmget,malloc。
本文先简单介绍应用程序对内存的使用以及I/O系统对...
分类:
其他好文 时间:
2014-09-23 12:55:44
阅读次数:
380