上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: 原文出处:http://blog.csdn.net/zhengdy/article/details/5485472 Windows 和 Linux 的IPC API对应表Table 1. Process mappingWindowsLinuxClassifi... 阅读全文
posted @ 2014-10-17 01:02 咚咚锵锵 阅读(1809) 评论(0) 推荐(0) 编辑
摘要: 创建线程:int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg);接下来要说的是:创建线程后,设置线程优先级的问题。获取/设置当前线程... 阅读全文
posted @ 2014-10-17 00:54 咚咚锵锵 阅读(1377) 评论(1) 推荐(1) 编辑
摘要: 线程属性一.线程属性线程具有属性,用pthread_attr_t表示,在对该结构进行处理之前必须进行初始化,在使用后需要对其去除初始化。我们用pthread_attr_init函数对其初始化,用pthread_attr_destroy对其去除初始化。名称::pthread_attr_init/pth... 阅读全文
posted @ 2014-10-17 00:35 咚咚锵锵 阅读(426) 评论(0) 推荐(1) 编辑
摘要: 一.函数:1.线程属性的初始化与销毁:#include int pthread_attr_init(pthread_attr_t *attr);int pthread_attr_destroy(pthread_attr_t *attr);Both return: 0 if OK, error nu... 阅读全文
posted @ 2014-10-17 00:32 咚咚锵锵 阅读(1035) 评论(0) 推荐(1) 编辑
摘要: 1. 线程属性:使用pthread_attr_t类型表示,我们需要对此结构体进行初始化, 初始化后使用,使用后还要进行去除初始化! pthread_attr_init:初始化 pthread_attr_destory:去除初始化 #include int pt... 阅读全文
posted @ 2014-10-17 00:31 咚咚锵锵 阅读(18195) 评论(2) 推荐(1) 编辑
摘要: linux内核的三种主要调度策略:1,SCHED_OTHER 分时调度策略,2,SCHED_FIFO实时调度策略(先到先服务)3,SCHED_RR实时调度策略(时间片轮转)实时进程将得到优先调用,实时进程根据实时优先级决定调度权值。分时进程则通过nice和counter值决定权值,nice越小,co... 阅读全文
posted @ 2014-10-16 22:04 咚咚锵锵 阅读(5593) 评论(1) 推荐(0) 编辑
摘要: http://baidutech.blog.51cto.com/4114344/904419/http://www.newsmth.net/pc/pccon.php?id=10001977&nid=316530http://blog.sina.com.cn/s/blog_51af865b0100c0... 阅读全文
posted @ 2014-10-15 14:00 咚咚锵锵 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 命令:echorep如果你有些编程方面的概念,最有意思的是用gdb,它可以进行进制转换,浮点数运算,数据类型占用字节数等等,很方便。(gdb) p 2+5$21 = 7(gdb) p 2/5$22 = 0(gdb) p 2/5.0$23 = 0.39999999999999997(gdb) p/x ... 阅读全文
posted @ 2014-10-15 13:24 咚咚锵锵 阅读(2435) 评论(0) 推荐(0) 编辑
摘要: 一、服务器构架一个天龙八部游戏区,主要服务器部署情况如下图所示:实际部署可能有所不同。区角色数据库可以安装到Machine4,那么一个区有5台物理机器。LoginServer和WorldServer、CharacterDB、BillingServer有连接。WorldServer和各个GameSer... 阅读全文
posted @ 2014-10-15 09:43 咚咚锵锵 阅读(980) 评论(0) 推荐(0) 编辑
摘要: inux系统编程我一直看 ,只是讲的太简单了,通常是书和网络上的资料结合着来掌握才比较全面 .在掌握了书上的内容后,再来都其他资料 .原文链接http://www.cnblogs.com/skyme/archive/2011/01/04/1925404.html共享内存是系统出于多个进程之间通讯的考... 阅读全文
posted @ 2014-10-15 00:10 咚咚锵锵 阅读(2080) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页