08 2013 档案

摘要:join()是Thread类的一个方法。根据jdk文档的定义: public final void join()throws InterruptedException: Waits for this thread to die. join()方法的作用,是等待这个线程结束;但显然,这样的定义并不清晰... 阅读全文
posted @ 2013-08-28 10:44 macemers 阅读(68680) 评论(4) 推荐(4)
摘要:wait(),notify()和notifyAll()都是java.lang.Object的方法: wait():Causes the current thread to wait until another thread invokes the notify() method or the not... 阅读全文
posted @ 2013-08-21 14:24 macemers 阅读(48242) 评论(3) 推荐(11)
摘要:C++创建对象有两种方式,在栈上创建对象(Objects on the Stack)和在堆上创建对象(Objects on the Heap)。 假设我们有以下的类: 1 #include 2 using std::string; 3 4 class SpreadsheetCell{ 5 ... 阅读全文
posted @ 2013-08-14 16:56 macemers 阅读(12101) 评论(0) 推荐(1)