pthread_cleanup_pop_restore - 它是什么?
pthread_cleanup_pop_restore - 它是什么?
它来自 glibc。而且调用太频繁,占用大量cpu时间。
该程序使用了大量的 getc() 调用。我无法更改程序(它是固定源的基准),但想让它运行得更快。
pthread_cleanup_pop_restore - what is it?
It is from glibc. And it is called too often and eats a lot of cpu time.
The program uses a lot of getc() calls. I can't change the program (it is the benchmark with fixed source), but want to make it run faster.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个函数!
反过来,将从 pthread_cancel 的清理队列中取消注册清理函数。当 glibc io 函数(在 glibc 中启用文件锁定)被 pthread_cancel 中断时,它将有唯一的机会解锁文件描述符。这个机会是这个函数的对应部分。
It is a function!
which in turn, will deregister cleanup function from
pthread_cancel
's cleanup queue. When glibc io function (with file locking enabled in glibc) will be interrupted by pthread_cancel, it will have a only chance of unlocking file descriptor. This chance is the this function counterpart.