Safe to update separate regions of a BufferedImage in separate threads?
I have a collection of BufferedImage instances, one main image and some subimages created by calling getSubImage on the main image. The subimages do not overlap. I am also making modifications to the subimage and I want to split this into multiple threads, one per subimage. From my understanding of how BufferedImage , Raster and DataBuffer work, this should be safe because: Each instance of BufferedImage (and its respective WritableRaster and SampleModel ) is accessed from only one thread. The shared ColorModel is immutable The DataBuffer has no fields that can be modified (the only thing that