线程停顿与唤醒

停顿线程

LockSupport.park();

唤醒线程

LockSupport.unpark(Thread thread);
posted @ 2022-01-02 20:45  码农公子的幸福生活  阅读(40)  评论(0)    收藏  举报