
多线程
文章平均质量分 52
似水流年_____
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
多线程死锁
package com.mwl.thread3; class A{ public synchronized void foo(B b){ System.out.println("当前线程名:"+Thread.currentThread().getName() +"进...原创 2018-07-16 16:15:28 · 169 阅读 · 0 评论 -
java代码中使用多线程并行
@ResponseBody @RequestMapping("/test") public String testThread(){ Date date1 = new Date(); System.out.println("注册用户");// sendEmail();// sendMsg(); Thread thread = new Thread(() -> sendEmail()...原创 2018-07-07 14:56:22 · 1783 阅读 · 0 评论