2014年2月18日

hash tabel 与 dictionary 的区别

摘要: 1 :Hashtable 支持多个线程读,同时只有一个线程写 , dictionary 不支持 Hashtable supports multiple reader threads with a single writer thread, while Dictionary offers no thread safety. If you need thread safety with a generic dictionary, you must implement your own synchronization or (in .NET 4.0) use ConcurrentDictionary 阅读全文

posted @ 2014-02-18 10:31 齐文宣 阅读(357) 评论(1) 推荐(0)

opengGL + glut 实现画几个简单的图元

摘要: 功能: when press "c" ------ circle "s" ------ cube with color "t" ------ triaggle "m" ----- cube with texture when press "r" ----- above primitive will rotate around y axis代码 :#include #include #include "FreeImage.h"#include #include #include 阅读全文

posted @ 2014-02-18 09:33 齐文宣 阅读(656) 评论(0) 推荐(0)

导航