Boost logo

Boost Users :

Subject: [Boost-users] Boost.Random multithreading
From: Juan Antonio Farré Basurte (jafb_at_[hidden])
Date: 2010-11-14 10:03:12


 Hi,

 Are random number generators thread safe? Can I use a random number
generator by multiple threads without explicit locking?

 I guess the answer is no... Then I wonder if every thread could use a
different instance of the same random number generator without interference
between the different generators.

 I guess the answer is yes for pseudorandom generators. But what about
real random generators? If I have different instances of one, they all have
to access the same source of randomness (maybe hardware). Will they
synchronize transparently?

 Thanks a lot,

 Juan
  



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net