Talk:Concurrent computing: Difference between revisions

mNo edit summary
Line 13:
It seems to me that none of the examples so far make sure that there's no attempt to output two strings at the same time. Do all the languages have reentrant output routines, or are there examples with subtle bugs in here? --[[User:Ce|Ce]] 09:33, 28 February 2008 (MST)
:I'm 99% sure Java will not output two strings at once. The [[JVM]] handles it. I don't know enough about the other languages to answer for them. --[[User:Mwn3d|Mwn3d]] 09:43, 28 February 2008 (MST)
::Interesting. I believe it is not an issue since ''writing'' to a stream should be ''atomically'' done, or done in a thread-safe way. The worst that can happen is messing up output, but race conditions or deadlocks or any other bad thing should not occur (at least, if messing up output is not a bad thing! EnRosejotCotayde?!) Consider that the same ''stream'' (stdout) can be ''transparently'' used by several processes (e.g. I am running Kate editor from the same shell I use to compile code, so sometimes stderr of Kate is intermixed with stdout and stderr of other tasks) --[[User:ShinTakezou|ShinTakezou]] 18:50, 17 December 2008 (UTC)