閱讀740 返回首頁    go 阿裏雲 go 技術社區[雲棲]


【最近麵試遇到的一些問題】多線程有幾種實現方法,都是什麼?同步有幾種實現方法,都是什麼

多線程有兩種實現方法。一種是繼承Thread類,一種是實現Runnable接口!   
同步有兩種方法。一種同步方法,一種同步代碼!分別是synchronized,wait與notify

最後更新:2017-04-04 07:03:32

  上一篇:go android集成支付寶簡介
  下一篇:go BookService數組調用