Re:Linux /dev/urandom and concurrency
by zatkin on Friday April 18, 2014 @03:34PM
(#7610860)
So, would a possible solution be to check how many people are using the random generator at once? If only one process is currently accessing /dev/urandom, then avoid the spinlock and problem solved. Or, I am completely wrong.
[ Parent
| on HN ]
If there is only one process, then no spinlock contention, so no problem.
The problem comes with multiple processes competing for the lock.
Re:Linux /dev/urandom and concurrency
by ef47d35620c1 on Friday April 18, 2014 @04:13PM
(#7611055)
Would a possible solution be to check how many people are using the random generator...?
One preson may have multiple processes reading from /dev/urandom.