Re: 關於synchronized
※ 引述《moigai (我就是沒內容Orz)》之銘言:
: 我不太懂他的意思
: 就都是宣告在function前面
: 到底加了會有怎樣的對應呢
: 希望知道的人可以說一下
: 謝謝
加了就是這個function ,
同時間只能被一個Thread所呼叫。:)
其他要叫它的都要排隊.
--
String temp="relax"; | Life just like programing
while(buringlife) String.forgot(temp); | to be right or wrong
while(sleeping) brain.setMemoryOut(); | need not to say
stack.push(life.running); | the complier will
stack.push(scouting.buck()); | answer your life
stack.push(bowling.pratice()); | Bone everything
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.138.240.58
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 5 之 6 篇):
java 近期熱門文章
PTT數位生活區 即時熱門文章