在使用 eclipse编写多线程程序的时候,会出现下面的问题
undefined reference to `pthread_create’,这是编译器找不到函数库的原因。
解决办法:
右键单击项目选择Properties ->选择setting->gcc c linker -> libraries ->点击上面的加号添加一个函数库pthread 。保存就可以了...
分类:
编程语言 时间:
2015-03-03 16:46:22
阅读次数:
105
C++ string类的方法具体每个方法怎么使用,可以参考相应的链接。总的链接为http://www.cplusplus.com/reference/string/string/(C++参考文档)string 函数列表函数名描述begin得到指向字符串开头的Iteratorend得到指向字符串结尾的...
分类:
编程语言 时间:
2015-03-03 16:24:46
阅读次数:
128
原文地址:http://architects.dzone.com/articles/how-analyze-java-thread-dumpsThePerformance Zoneis presented byAppDynamics. AppDynamics is a leaders in the ...
分类:
编程语言 时间:
2015-03-03 13:26:29
阅读次数:
148
本文来源于我个人的ARC学习笔记,旨在通过简明扼要的方式总结出iOS开发中ARC(Automatic Reference Counting,自动引用计数)内存管理技术的要点,所以不会涉及全部细节。这篇文章不是一篇标准的ARC使用教程,并假定读者已经对ARC有了一定了解和使用经验。详细的关于ARC的信...
分类:
移动开发 时间:
2015-03-03 09:46:31
阅读次数:
190
root@cbill-VirtualBox:/# chown --help用法:chown [选项]... [所有者][:[组]] 文件... 或:chown [选项]... --reference=参考文件 文件...更改每个文件的所有者和/或所属组。当使用 --referebce 参数时,将文件...
分类:
其他好文 时间:
2015-03-02 20:40:52
阅读次数:
132
Some people found the following information in the MAXScript reference for 2010:NEWin3ds Max 2010:The3ds Maxscenefilenow providesAsset Metadatain a se...
分类:
其他好文 时间:
2015-03-02 12:46:25
阅读次数:
661
错误一:????undefined reference to `boost::system::generic_category()‘ ?????????undefined reference to `boost::system::generic_category()‘ ?????????undefined reference to `boo...
1.“引用记数(reference counting)”是一种简单但速度很慢的垃圾回收技术。每个对象都含有一个引用记数器,当有引用连接至对象时,引用计数加1。当引用离开作用域或被置 为null时,引用计数减1。虽然管理引用记数的开销不大,但需要在整个程序生命周期中持续地开销。垃圾回收器会在含有全部对...
分类:
编程语言 时间:
2015-03-01 23:41:54
阅读次数:
264
Usingahashasareferenceisdeprecatedattemplateexample/index.html.epline8Usingaarrayasareferenceisdeprecatedattemplateexample/index.html.epline8很简单因为没有正确使用hash跟数组造成的%=%$entries->{$id}->{‘id‘};
%=%$entries->{$id}->{‘title‘};
%=%$ent..
一,retain, copy, assign区别概念:assign: 简单赋值,不更改索引计数(reference counting)。copy: 建立一个索引计数为1的对象,然后释放旧对象retain:释放旧的对象,将旧对象的值赋予输入对象,再提高输入对象的索引计数为1例:1 NSString *...
分类:
其他好文 时间:
2015-03-01 15:39:08
阅读次数:
169