如果底层的线程终止了,它会被重新创建。
当线程终止时,操作系统将清理所有分配给线程的资源,其中也包括了关闭任何线程已经打开的会话。
When a thread terminates, the operating system cleans up all resources still allocated to the thread; this includes closing any sessions which it had open.
注意:bot只在启用时调用线程(记住,每个插件都是一个线程);在线程终止之后,只有在重新调用bot时才会重启线程。
NOTE: the bot invokes threads (remember that each plug-in is a thread) only when it is started; after a thread terminates it is not restarted until the bot is invoked again.
应用推荐