摘要: 停止线程 不推荐使用jdk提供的stop()、destroy()方法停止线程 推荐线程自己停止下来 建议使用一个标志位进行终止变量,当flag=false时,线程停止 比如 package com.Thread; public class Teststop implements Runnable{ 阅读全文
posted @ 2021-10-04 18:12 爱思考的L 阅读(47) 评论(0) 推荐(0)