Spring / Spring batch Interview questions
How can I make an item reader thread safe in Spring Batch?
You can synchronize the read() method. Remember that you will lose restartability, so best practice is to mark the step as not restartable and to be safe (and efficient) you can also set saveState=false on the reader.
More Related questions...