Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1184214

printing methods are not all synchronized

    Details

    • Subcomponent:
    • Resolved In Build:
      0.9internal
    • CPU:
      sparc
    • OS:
      solaris_2.3
    • Verification:
      Not verified

      Description

      The println methods in class PrintStream
      are not all synchronized. The result is that
      if two threads try to simultaneously
      use println() you can sometimes end up with another print printing
      between the first part of the string and the newline character.
      The bad output looks like this:

      Done reading http://tachyon/~csw/graphics/csw.gifD
      one reading http://tachyon/~csw/graphics/csw.gifD
      one reading http://tachyon/~csw/graphics/csw.gifD
      one reading http://tachyon/~csw/graphics/csw.gif
      Done reading http://tachyon/~csw/graphics/csw.gifD
      one reading http://tachyon/~csw/graphics/csw.gifD
      one reading http://tachyon/~csw/graphics/csw.gifD
      one reading http://tachyon/~csw/graphics/csw.gif

        Attachments

          Activity

            People

            • Assignee:
              duke J. Duke (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: