委托调用方法的4种方式. using System; using System.Collections.Generic; namespace ConsoleApplication1 { delegate void DelFunc(string a); //delegate void FUNC<int ,int,string>( ); class Program { public static void Fun1(string str) { List<int> list = new…
T3先执行,在T3的run中,调用t2.join,让t2执行完成后再执行t3 在T2的run中,调用t1.join,让t1执行完成后再让T2执行 public class Test { // 1.现在有T1.T2.T3三个线程,你怎样保证T2在T1执行完后执行,T3在T2执行完后执行 public static void main(String[] args) { final Thread t1 = new Thread(new Runnable() { @Override public voi…
SQL> select t1.* from t1,t2 where t1.object_id=t2.object_id; rows selected. Execution Plan ---------------------------------------------------------- -------------------------------------------------------------------------------- ------- | Id | Oper…
要实现多个线程执行完成先后,就要知道如何实现线程之间的等待,java线程等待实现是join.java的jdk中join方法实现如下: public final synchronized void join(long millis) throws InterruptedException { long base = System.currentTimeMillis(); long now = 0; if (millis < 0) { throw new IllegalArgumentExcepti…
with a as( select nsr.zgswj_dm, count(distinct nsr.djxh) cnt, 1 z from hx_fp.fp_ly fp, hx_dj.dj_nsrxx nsr where nsr.djxh = fp.djxh and nsr.nsrzt_dm = '03' and fp.lrrq >= date '2018-03-01' and fp.lrrq <= date '2018-04-01' AND nsr.ZGSWSKFJ_DM LIKE '13…