Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Is cout << msg ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 43081 of 47977
Post > Topic >>

Is cout << msg an atomic action?

by Alex Vinokur <alexvn@[EMAIL PROTECTED] > Feb 3, 2008 at 09:17 PM

void foo (int n)
{
  std::ostringstream oss;
  oss << "ABCD: " << n << std::endl;
  std::cout << oss.str() << std::flush;
}

That function has been invoked in multiprocessing mode.


Output was something like:
ABCA: B1
C
etc.

Is cout << msg an atomic action?




Alex Vinokur
     email: alex DOT vinokur AT gmail DOT com
     http://mathforum.org/library/view/10978.html
     http://sourceforge.net/users/alexvn
 




 7 Posts in Topic:
Is cout << msg an atomic action?
Alex Vinokur <alexvn@[  2008-02-03 21:17:07 
Re: Is cout << msg an atomic action?
"Chris Thomasson&quo  2008-02-03 21:32:00 
Re: Is cout << msg an atomic action?
James Kanze <james.kan  2008-02-04 01:42:10 
Re: Is cout << msg an atomic action?
Alex Vinokur <alexvn@[  2008-02-04 02:54:55 
Re: Is cout << msg an atomic action?
"Chris Thomasson&quo  2008-02-04 21:03:30 
Re: Is cout << msg an atomic action?
James Kanze <james.kan  2008-02-05 05:28:28 
Re: Is cout << msg an atomic action?
peter koch <peter.koch  2008-02-05 15:08:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 8:49:20 CDT 2008.