11 2013 档案
摘要:随着NoSql的流行,对这方面的产品开始关注起来,之前一直只是看看。从昨天开始决定把Redis的实现机制啃下来,毕竟代码量也就2W行。每天花时间看看,记录下成果。here we go.
阅读全文
摘要: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, ¶m);11 switch(policy){12 case SCHED_OTHER:13 ...
阅读全文

浙公网安备 33010602011771号