摘要:
pthread 线程有两种状态,joinable(非分离)状态和detachable(分离)状态,默认为joinable。 joinable:当线程函数自己返回退出或pthread_exit时都不会释放线程所用资源,包括栈,线程描述符等(有人说有8k多,未经验证)。 detachable:线程结束时会自动释放资源。Linux man page said:When a joinable thread terminates, its memory resources (thread descriptor and stack) are not deallocated until another th 阅读全文
摘要:
date:2011.05.24 ~ 2011.06.05学习c++编码规范,养成良好的代码风格。Google C++ Style Guidehttp://google-styleguide.googlecode.com/svn/trunk/cppguide.xmlGoogle Objective-C Style Guidehttp://google-styleguide.googlecode.com/svn/trunk/objcguide.xmlc++命名规则http://hi.baidu.com/net629/blog/item/4e8de6321fde034ead4b5fe0.html1, 阅读全文
摘要:
Hello world! This is LittleAnt speaking... 阅读全文