多线程 input生产 res(username,sex) out消费 synchronized(res) wait-notify
摘要:
1、wait 使用说明 public class Thread001 { class Res{ public String userName; private char sex; private boolean flag; } class InputThread extends Thread{ Re 阅读全文
posted @ 2021-04-06 10:32 cn2025 阅读(87) 评论(0) 推荐(0)