PThread 提供了API,讓我們可以取消已建立的POSIX Thread。 int pthread_cancel(pthread_t thread);. 想知道更多細節可以參考該連結。 exit 和pthread_exit 的差異.
確定! 回上一頁