can't understand why code do not working

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 22 14:19:48 PDT 2014


On Monday, 22 September 2014 at 20:37:42 UTC, Cliff wrote:
> Is stdout threadsafe?

Yes. All io operations lock in D, so are thread safe. You will 
never have interlaced io. If you want to do several opeations, 
then you can use LockingTextWriter, which is faster, s it locks 
once until you are finished. Though to be honest, the io itself 
is slow enough that I've never needed it.


More information about the Digitalmars-d-learn mailing list