> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com。
> 要查看更多选项,请访问https://groups.google.com/d/optout。
果断corouting啊
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛中的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com。
要查看更多选项,请访问https://groups.google.com/d/optout。
确实是各种坑啊。前段时间我负责的一个功能总是跑一段时间就再也创建不了线程了,而创建线程的代码是从同一产品其他地方copy过来的,后来网上一查就说“要么deatach, 要么pthread_exit , pthread_join”,只有我那块是会反复创建退出线程的,所以才暴这问题,其他地方的线程都只创建一次,所以即使代码没写对也不影响实际运行。。。
--
又被我抓住了错误的信息,先贴再找办法。
就算产品实际情况几天只走一次那段逻辑,走完就关机了,压力测试一上就暴露了。
多线程奏是这样,每次都出错,每次提示的错误都还不一样。
就算设置了这种保护也没有用,还是一样的corrupt.
说起不停创建线程这事,不是因为先用了一个定时器,定时到了之后呢,有三四种不同的任务,
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛中的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com。
要查看更多选项,请访问https://groups.google.com/d/optout。
多线程管理和内存管理放一起才是大垦。线程创建太多会把系统资源消耗光的。想办法搞个线程池吧。
-fopenmp-simd
option can be used to enable OpenMP's
SIMD directives, while ignoring other OpenMP directives. The new -fsimd-cost-model=
option permits to tune the
vectorization cost model for loops annotated with OpenMP and Cilk
Plus simd
directives; -Wopenmp-simd
warns when
the current costmodel overrides simd directives set by the user.