首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

JAVA多线程设计形式四 Balking Pattern

2012-07-01 
JAVA多线程设计模式四 Balking Pattern???public class Main {public static void main(String[] args) {D

JAVA多线程设计模式四 Balking Pattern

?

?

public class Main {    public static void main(String[] args) {        Data data = new Data("data.txt", "(empty)");        new ChangerThread("ChangerThread", data).start();        new SaverThread("SaverThread", data).start();    }}

?

?

条件不满足,则跳过。并不wait()

热点排行