There's just no point in letting your main startup thread exit like that.
只是没有点让你的主启动线程退出。
Synchronized methods and blocks allow a thread to lock an object on entry and unlock the object on exit (to the method or block).
同步的方法和代码块允许线程在入口处锁定对象并在出口处解锁(针对方法或代码块)。
If an application creates a thread pool and the thread pool creates threads, the threads are resources that must be released (allowed to terminate) before the program can exit.
如果应用程序创建一个线程池,而线程池创建线程,线程是程序可以退出之前必须被释放的资源。
If the pool class does not catch these, then the thread will simply exit and the size of the thread pool will be permanently reduced by one.
如果池类没有捕捉到它们,那么线程只会退出而线程池的大小将会永久减少一个。
Finalization of objects with the finalize method the last thread to exit a scope is used to finalize all objects within.
使用finalize方法终结对象退出范围的最后一个线程用于终结范围中的所有对象。
To avoid this, an un-caught handler can decide whether to invoke an abort or a thread-exit call.
为了避免这一点,未捕获处理程序可以决定是请求异常中止调用,还是请求线程退出调用。
It creates a thread that enumerates prime Numbers until it is interrupted and allows the thread to exit upon interruption.
清单5创建一个线程,该线程列举素数,直到被中断,这里还允许该线程在被中断时退出。
When the SPU needs to do any standard library calls like printf or exit, it has to call back to the main thread.
当SPU需要执行任何标准的库调用时,例如 printf或exit,它都需要回调主线程。
Is it possible to use exit in thread?
它是可能的使用在线程退出?
A programming error in another thread might have caused that thread to exit the semaphore more times than it entered.
另一个线程中的编程错误可能导致该线程退出信号量的次数超过它进入的次数。
Sets the period of time to wait for the associated process to exit, and blocks the current thread of execution until the time has elapsed or the process has exited.
设置等待关联进程退出的时间,并在该段时间结束前或该进程退出前,阻止当前线程执行。
Sets the period of time to wait for the associated process to exit, and blocks the current thread of execution until the time has elapsed or the process has exited.
设置等待关联进程退出的时间,并在该段时间结束前或该进程退出前,阻止当前线程执行。
应用推荐