操作系统关闭了我的本机线程?
据我所知,如果内存不足,操作系统会关闭线程。 1) 对于使用 pthread 启动的本机线程是否正确? 2)如果是这样,我如何知道操作系统是否关闭了线程?
谢谢, 那厄姆
As far as I know the OS closes threads if it is low on memory.
1) Is is true for native threads that was started using pthread?
2) If so, how can I know if the OS closed a thread?
Thanks,
Nahum
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,情况并非如此。当内存不足时,Android 将终止整个进程,而不是单个线程。
Not as far as I am aware. Android will terminate your entire process when it is low on memory, not individual threads.