Many threads are writing StringBuffer to same file. StringBuffer contains around 100 lines. What is the output in file if multiple threads write to same file. Is each output from different threads mixup in file or they appear sequentially.
Many threads are writing StringBuffer to same file. StringBuffer contains around 100 lines. What
Share
all of the above plus an exception could be thrown on one or more of the threads
Without some sort of synchronisation between the threads the result is non deterministic.