摘要:
這是我花了三個星期測試並且撰寫..
實際在三部redhat 8.0上測試安裝成功...
其中包含lvs/dr、lvs/ip tunnel的arp problem也解決了...
有用就拿去參考吧...
做出來的東西跟那些大廠的ha差不多,
所以其實不需要advance server版本,
一樣可以實現ha...
只是比較麻煩罷了...:)
===================================
作者:apile(apilecheng@y......
摘要:
在 linux 上烧录 cd
linux scsi 仿真冒险
创建 .iso 文件
烧录盘
复制盘
多段刻录
结束语
相关内容:
knoppix 提供了一个可引导的、容量为一张光盘的 linux
basic tasks for new linux developers
命令行上的 mkisofs 和 cdrecord 使这一切成为可能
carla schroder(dworks@bratgrrl.com)
负责......
对线程和进程的时间分析
首先申明,我是菜鸟.菜到什么程度,大家看看下面的代码.
【相关文章:
原创之apache指令大全】 【扩展阅读:
原创之Linux服务大全】代码要求:取得1000次单独创建进程的时间.
【扩展信息:
安装网卡设备记实- 我的网卡终于正常了】 [code:1:fdac913669]#include
#include
#include
#include
#include
strut timeval {
long tv_sec; /* 秒数 */
long tv_usec; /* 微秒数 */
};
int gettimeofday(struct timeval *tv,struct timezone *tz);
main()
{
struct timeval tpstart,tpend;
float timeuse;
unsigned int i;
gettimeofday(&tpstart,null);
for(i=0;i<1000;i++)
pid_t fork();
gettimeofday(&tpend,null);
timeuse=1000000*(tpend.tv_sec-tpstart.tv_sec)+tpend.tv_usec-tpstart.tv_usec;
timeuse/=1000000;
printf("used time:%f\n",timeuse);
exit(0);
}
[/code:1:fdac913669]
取得线程时间:
//线程
不知道该怎么做.因为int pthread_create(pthread_t * thread, pthread_attr_t * attr,
void * (*start_routine)(void *), void * arg)
需要返回一个参数,比如:
int ret;
ret=pthread_create(pthread_t * thread, null, void * (*start_routine)(void *), void * arg);
那么时间当中就包含了赋值的时间了.
[b:fdac913669]不知道大家对线程与进程的创建的时间取得有什么好的建议呢?[/b:fdac913669]
aero 回复于:2003-08-10 21:01:44
偶觉得,已经不菜了。
如果你菜,那偶就还是鸟蛋了。 ...
下一页 摘要:
wongmokin 回复于:2003-08-01 17:49:18
举例如下
tar --exclude home/update/redhat/* --exclude lib --exclude usr/share
可以陆续添加, 注意 添加排队目录时不要加/根符号如
usr/share == /usr/share
lib == /lib
wanahoo 回复于:2003-08-06 19:53:13
m......