sczero 最近的时间轴更新
sczero

sczero

V2EX 第 152797 号会员,加入于 2015-12-24 15:31:19 +08:00
今日活跃度排名 3119
sczero 最近回复了
2023 年 11 月 24 日
回复了 missya 创建的主题 健康 快被疾病折磨崩溃了,有没有相似病的?
我之前也有类似的症状,屁股根部疼,但不一定符合你的情况.去医院也没找到原因.
疼时间久了之后慢慢控制变量,得出的结论是鞋子不好导致的.
2022 年 4 月 12 日
回复了 licoycn 创建的主题 程序员 配置中心采用 nacos 还是 apollo
直接用 nacos-spring 就行了,boot 版还没更新
2021 年 10 月 12 日
回复了 shmichaelli 创建的主题 上海 上海的程序员交流群(技术、求职、生活)
c2N6MDIxNg==
2021 年 1 月 25 日
回复了 Cbdy 创建的主题 Java 求一个 Java 面试题的最佳实践
@zzh7982 新建了 300 个线程......至于吗....
2021 年 1 月 25 日
回复了 Cbdy 创建的主题 Java 求一个 Java 面试题的最佳实践
public static void main(String[] args) throws InterruptedException {
final AtomicReference<String> tag = new AtomicReference<>("a");
final int total = 100;
new Thread(() -> {
int count = 0;
while (count < total) {
if (tag.get().equals("a")) {
System.out.print("a");
tag.set("b");
count++;
}
}
}).start();
new Thread(() -> {
int count = 0;
while (count < total) {
if (tag.get().equals("b")) {
System.out.print("b");
tag.set("c");
count++;
}
}
}).start();
new Thread(() -> {
int count = 0;
while (count < total) {
if (tag.get().equals("c")) {
System.out.println("c");
tag.set("a");
count++;
}
}
}).start();
}
Docker 书好牛掰
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   929 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 20:22 · PVG 04:22 · LAX 12:22 · JFK 15:22
♥ Do have faith in what you're doing.