Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我创建一个线程来执行某些功能时,它的状态首先是“正在运行”,但之后它将变为“waitsleepjoin”或“停止”状态,所以:
通过调用Sleep()or Join(),或者在等待锁时。
Sleep()
Join()
在它完成所有代码之后(在原始方法返回之后)