11 2013 档案

摘要:随着NoSql的流行,对这方面的产品开始关注起来,之前一直只是看看。从昨天开始决定把Redis的实现机制啃下来,毕竟代码量也就2W行。每天花时间看看,记录下成果。here we go. 阅读全文
posted @ 2013-11-29 11:33 专属9号 阅读(147) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #define THREAD_COUNT 12 6 7 void show_thread_policy(int threadno){ 8 int policy; 9 struct sched_param param;10 pthread_getschedparam(pthread_self(), &policy, &param);11 switch(policy){12 case SCHED_OTHER:13 ... 阅读全文
posted @ 2013-11-22 17:31 专属9号 阅读(665) 评论(0) 推荐(0)