消息 [195356]
Am 16.08.2013 18:24, schrieb Charles-François Natali:
> Well, first we'll have to make the code thread-safe, if we want to
> keep a persistent FD open. Which means we'll have to add a lock, which
> is likely to reduce concurrency, and overall throughput.
Why locking? /dev/urandom is a pseudo char device. You can have multiple
readers on the same fd without any locking. Did you know that Java keeps
one persistent fd to /dev/urandom? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2013-08-16 16:43:31 | christian.heimes | 修改 | recipients:
+ christian.heimes, jcea, pitrou, vstinner, tarek, neologix, hynek |
| 2013-08-16 16:43:31 | christian.heimes | 链接 | issue18756 messages |
| 2013-08-16 16:43:31 | christian.heimes | 创建 | |
|