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

浙公网安备 33010602011771号