多個handle.post(Runnable r)會怎樣?
Handler?handle?=?new?Handler(); handle.post(new?Runnable()?{ @Override public?void?run()?{ try?{ Thread.sleep(1000); }?catch?(InterruptedException?e)?{ System.out.println("1"); e.printStackTrace(); } } }); handle.post(new?Runnable()?{ @Override public?void?run()?{ try?{ Thread.sleep(2000); }?catch?(InterruptedException?e)?{ System.out.println("2"); e.printStackTrace(); } } }); handle.post(new?Runnable()?{ @Override public?void?run()?{ System.out.println("3"); } }); 會發生什么問題?
2015-10-14
312