会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
你在学什么
首页
新随笔
管理
2023年5月9日
两个线程交替打印100以内的数字
摘要: # 共享内存(不使用锁) ``` class test { private static int count = 0; public static void main(String[] args) { Thread t1 = new MyThread(0); Thread t2 = new MyTh
阅读全文
posted @ 2023-05-09 22:07 你在学什么
阅读(65)
评论(0)
推荐(0)
公告