上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 34 下一页

2012年2月26日

摘要: /proc/stat记录了CPU使用的数据,比如CPU在用户态、nice和内核态的时间,其单位是USER_HZ or Jiffies (1/100 seconds)> adb shell cat /proc/statcpu 18485 385 17818 1731820 10138 10 244 0 0 0cpu0 16059 283 16775 847113 8982 10 243 0 0 0intr 742034 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 335460 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 阅读全文
posted @ 2012-02-26 17:41 做个不善的人 阅读(870) 评论(0) 推荐(0)
 
摘要: 早先大家在谈论C10K问题,现在开始讨论C500K了?到底什么情况,本人不在这个领域工作,没有真实的工作经验,但是对这块很感兴趣,所以收集了若干资料,不断补充。1. C10K problem: http://www.kegel.com/c10k.html2. http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-13. Jonathan‘s paper on kqueue :http://people.freebsd.org/~jlemon/papers/kqueue.pdf4. 阅读全文
posted @ 2012-02-26 11:43 做个不善的人 阅读(1115) 评论(0) 推荐(1)
 

2012年2月19日

摘要: http://www.cnblogs.com/haippy/archive/2011/12/17/2290956.html http://msdn.microsoft.com/zh-cn/magazine/cc163311.aspx http://drdobbs.com/184416590 http://dotnetfresh.cnblogs.com/archive/2005/06/27/1818... 阅读全文
posted @ 2012-02-19 16:40 做个不善的人 阅读(295) 评论(0) 推荐(0)
 
摘要: 1. 条件变量是用来发信号的,并不是用于互斥访问。 2. 使用条件变量时,需要注意Spurious wakeups。 Ref: http://www.cnblogs.com/leaven/archive/2010/06/03/1750973.html 阅读全文
posted @ 2012-02-19 16:39 做个不善的人 阅读(136) 评论(0) 推荐(0)
 
摘要: Telnet is a network protocol used on the Internet or local area networks to provide a bidirectional interactive text-oriented communications facility using a virtual terminal connection. All data octe... 阅读全文
posted @ 2012-02-19 12:42 做个不善的人 阅读(1471) 评论(0) 推荐(0)
 

2012年2月14日

摘要: G.711 主要用于电话的一种codec,G.711定义了两种算法:the µ-law algorithm (used in North America & Japan) and A-law algorithm (used in Europe and the rest of the world)。 美国和日本使用µ-law,欧洲和其他国家使用A-law。 所以VoIP电话中应该同时提供这两种cod... 阅读全文
posted @ 2012-02-14 09:42 做个不善的人 阅读(877) 评论(0) 推荐(0)
 

2012年2月10日

摘要: Active Routes: Network Destination Netmask Gateway Interface Metric1, 0.0.0.0 0.0.0.0 192.168.123.254 192.168.123.88 12, 0.0.0.0 0.0.0.0 192.168.123.254 192.168.123.68 13, 127.0.0.0 255.0.0.0 127.0.0... 阅读全文
posted @ 2012-02-10 23:08 做个不善的人 阅读(1043) 评论(0) 推荐(0)
 

2012年2月5日

摘要: new的类型有三种类型的new,名字都是new,用起来也都跟分配内存有关系,分别是plain new , nothrow new和 placement new。看如下代码:class MyClass {…}; MyClass * p=new MyClass;这里的new实际上是执行如下3个过程(这三个过程都在一个new operator中完成):1. 调用malloc/heap_alloc分配内存 ;2. 调用构造函数生成类对象;3. 返回相应指针。operator new就像operator+一样,是可以重载的,但是不能在全局对原型为void operator new(size_t size 阅读全文
posted @ 2012-02-05 16:26 做个不善的人 阅读(2809) 评论(0) 推荐(0)
 
摘要: 在C++中有两种类型可以用于表示字符,char和wchar_t。 但是字符串格式的标准却有很多种,如ASCII,UTF8,UTF16,UTF32等等。字符串的格式和char/wchar_t 的关系是什么呢? 首先要理解Unicode和UTF-8的关系,可以参考我转帖的文章:http://www.cnblogs.com/whyandinside/archive/2012/02/05/2338841.... 阅读全文
posted @ 2012-02-05 12:50 做个不善的人 阅读(2401) 评论(0) 推荐(1)
 
摘要: 转自: http://apps.hi.baidu.com/share/detail/17798660 字符编码是计算机技术的基石,想要熟练使用计算机,就必须懂得字符编码的知识。不注意的人可能对这个不在意,但这些名词有时候实在让人迷惑,对想学习计算机知识的人来说,搞懂它也十分重要,我也是在学习中慢慢了解了一些这方面的知识。 1. ASCII码 在计算机内部,所有的信息最终都表示为一个二进制的字符串。每一个二进制位(bit)有0和1两种状态,因此八个二进制位就可以组合出256种状态,这被称为一个字节(byte)。也就是说,一个字节一共可以用来表示256种不同的状态,每一个状态对应一个符号,就是2. 阅读全文
posted @ 2012-02-05 11:46 做个不善的人 阅读(3837) 评论(0) 推荐(0)
 
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 34 下一页