上一页 1 ··· 203 204 205 206 207 208 209 210 211 ··· 234 下一页
摘要: 地址:http://hi.baidu.com/hehongrong/item/20c296bcf8d834432aebe3b2如何看linux是32位还是64位如何看linux是32位还是64位查看linux是多少位的几位方法:查看linux机器是32位还是64位的方法:方法一:file /sbin/init 或者 file /bin/ls结果如下:/sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18 阅读全文
posted @ 2014-02-14 11:35 一天不进步,就是退步 阅读(400) 评论(0) 推荐(0)
摘要: source address:http://en.wikipedia.org/wiki/Radix_treeIncomputer science, aradixtree(alsopatriciatrieorradix trieorcompactprefix tree) is a space-optimizedtriedata structurewhere each node with only one child is merged with its child. The result is that every internal node has up to the number of ch 阅读全文
posted @ 2014-02-13 10:03 一天不进步,就是退步 阅读(946) 评论(0) 推荐(0)
摘要: source address:http://en.wikipedia.org/wiki/Red%E2%80%93black_treeAred–black treeis a type ofself-balancing binary search tree, adata structureused incomputer science.The self-balancing is provided by painting each node with one of two colors (these are typically called 'red' and 'black& 阅读全文
posted @ 2014-02-13 08:39 一天不进步,就是退步 阅读(1081) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-listReference Style - All LevelsA Tour of C++(Bjarne Stroustrup) The "tour" is a quick (about 180 pages and 14 chapters) tutorial overview of all of standard C++ (language and standard library,and using C++11) at a m 阅读全文
posted @ 2014-02-12 13:39 一天不进步,就是退步 阅读(782) 评论(1) 推荐(0)
摘要: 1. 事件模型。从事件角度说,事件驱动程序的基本结构是由一个事件收集器、一个事件发送器和一个事件处理器组成。事件收集器专门负责收集所有事件,包括来自用户的(如鼠标、键盘事件等)、来自硬件的(如时钟事件等)和来自软件的(如操作系统、应用程序本身等)。事件发送器负责将收集器收集到的事件分发到目标对象中。事件处理器做具体的事件响应工作。2. PV(Page View)页面访问量。 UV(Unique vistor) 独立用户。 LVS(linux Virtual Server)虚拟机 CDN(Content delivery Network 内容分发网络) PB(1PB=1024TB=10485.. 阅读全文
posted @ 2014-02-12 10:50 一天不进步,就是退步 阅读(328) 评论(0) 推荐(0)
摘要: http://hi.baidu.com/scoundrelgg/item/d4083f8412eea05d26ebd97fLinux getopt()函数 getopt_long()函数get_opt()函数:函数原型::#include int getopt(int argc, char * const argv[], const char *optstring);extern char *optarg;extern int optind, opterr, optopt;用法见右边栏1.参数说明:optstring:选项字母组成的字串。如果该字串里的任一字符后面有冒号,那么这个选项就要求有选 阅读全文
posted @ 2014-02-11 15:43 一天不进步,就是退步 阅读(598) 评论(0) 推荐(0)
摘要: http://blog.sina.com.cn/s/blog_52deb9d50100ml6y.html在C语言中,修饰符extern用在变量或者函数的声明前,用来说明“此变量/函数是在别处定义的,要在此处引用”。1. extern修饰变量的声明。举例来说,如果文件a.c需要引用b.c中变量int v,就可以在a.c中声明extern int v,然后就可以引用变量v。这里需要注意的是,被引用的变量v的链接属性必须是外链接(external)的,也就是说a.c要引用到v,不只是取决于在a.c中声明extern int v,还取决于变量v本身是能够被引用到的。这涉及到c语言的另外一个话题--变量 阅读全文
posted @ 2014-02-11 10:37 一天不进步,就是退步 阅读(3673) 评论(0) 推荐(0)
摘要: 1. 线程的定义1.1 线程定义在scheduler.h文件中,其定义如下所示/* Thread itself. */typedef struct _thread { unsigned long id; /*identify*/ unsigned char type; /* thread type */ struct _thread *next; /* next pointer of the thread */ struct _thread *prev; /* previous pointer of the t... 阅读全文
posted @ 2014-02-11 10:33 一天不进步,就是退步 阅读(1486) 评论(0) 推荐(0)
摘要: 1.keepalived的启动过程: 启动健康检查子进程和vrrp子进程。其中_WITH_LVS_,_WITH_VRRP_在configure和configure.in文件中定义。源码如下:/* Daemon init sequence */static voidstart_keepalived(void){#ifdef _WITH_LVS_ /* start healthchecker child */ if (daemon_mode & 2 || !daemon_mode) start_check_child();#endif#ifdef _WITH_VRRP_... 阅读全文
posted @ 2014-02-10 16:09 一天不进步,就是退步 阅读(16841) 评论(0) 推荐(0)
摘要: http://www.yesky.com/120/1865620.shtml作为Linux下的程序开发人员,大家一定都遇到过Makefile,用make命令来编译自己写的程序确实是很方便。一般情况下,大家都是手工写一个简单Makefile,如果要想写出一个符合自由软件惯例的Makefile就不那么容易了。 在本文中,将给大家介绍如何使用autoconf和automake两个工具来帮助我们自动地生成符合自由软件惯例的Makefile,这样就可以象常见的GNU程序一样,只要使用“./configure”,“make”,“make instal”就可以把程序安装到Linux系统中去了。这将特别适合. 阅读全文
posted @ 2014-02-10 15:18 一天不进步,就是退步 阅读(304) 评论(0) 推荐(0)
上一页 1 ··· 203 204 205 206 207 208 209 210 211 ··· 234 下一页