thread safe vs reentrant
来源:互联网 发布:ubuntu 安装 twisted 编辑:程序博客网 时间:2024/05/16 17:33
基本概念
通过阅读参考资料可以了解thread safe和reentrant的基本概念,并包括re-enrant 和 thread saft之间关系的举例
re-entrant but not thread saft的例子:
- https://en.wikipedia.org/wiki/Reentrancy_(computing)
- http://stackoverflow.com/questions/9116598/why-is-this-code-reentrant-but-not-thread-safe
疑问
- 如何避免出现reentrant的问题
– 这里给了一些建议 - reentrant的问题,只能发生在信号处理的情况吗?
– 答案应该是否定的,这里给出了非信号处理情况下,no-reentrant的例子
总结
- 对于自己编写的函数
- 应该考虑thread safe和re-entrant的问题
- 对于系统函数
- 使用时应该注意是否是re-entrant的
– 例如strtok就是不可重入的
- 使用时应该注意是否是re-entrant的
0 0
- thread safe vs reentrant
- thread safe vs reentrant
- Reentrant vs Thread-safe
- thread-safe 和 reentrant
- Qt reentrant、thread-safe
- reentrant,thread-safe 和 async-signal-safe
- reentrant,thread-safe 和 async-signal-safe
- reentrant,thread-safe 和 async-signal-safe
- Race Conditions and Reentrant and thread-safe
- reentrant函数与thread safe函数浅析
- C Thread Safe and Reentrant Function Examples
- Writing Reentrant and Thread-Safe Code(编写可重入和线程安全的代码)
- 编写可重入和线程安全的代码(Writing Reentrant and Thread-Safe Code)
- reentrant(可重入)函数与thread safe(线程安全)函数的区别
- reentrant thread safety
- Thread-safe, Signal-safe
- thread safe
- PHP Thread Safe and Non Thread Safe
- 【代码笔记】Java Web初入:XML的基本实现
- 简单工厂模式和工厂方法模式
- 捕获异常崩溃日志(iOS)
- Gradle中打jar包的方法
- 2015-12-24
- thread safe vs reentrant
- 注解--原生态底层
- 完全卸载Vmware
- PyQt5教程(1) 介绍
- c语言
- mongo 数据导出到mysql 以及常用查询
- Java Day4
- 黑马程序员__java之IO流
- 12月24日总结及下月计划安排