sczero's recent timeline updates
sczero

sczero

V2EX member #152797, joined on 2015-12-24 15:31:19 +08:00
Today's activity rank 3095
sczero's recent replies
Nov 24, 2023
Replied to a topic by missya 健康 快被疾病折磨崩溃了,有没有相似病的?
我之前也有类似的症状,屁股根部疼,但不一定符合你的情况.去医院也没找到原因.
疼时间久了之后慢慢控制变量,得出的结论是鞋子不好导致的.
Apr 12, 2022
Replied to a topic by licoycn 程序员 配置中心采用 nacos 还是 apollo
直接用 nacos-spring 就行了,boot 版还没更新
c2N6MDIxNg==
Jan 25, 2021
Replied to a topic by Cbdy Java 求一个 Java 面试题的最佳实践
@zzh7982 新建了 300 个线程......至于吗....
Jan 25, 2021
Replied to a topic by 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 书好牛掰
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3886 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 00:48 · PVG 08:48 · LAX 17:48 · JFK 20:48
♥ Do have faith in what you're doing.