is System.out.printf() statement asynchronous?
I am printing information to test Threads using Reentrant locks. I am creating fair locks using statement new ReentrantLock(true). In one of the object method where I am using lock, I am using method e.g. method() { for (int n = 0; n < 3; n++) { System.out.printf("%s: processing data \n", Thread.currentThread().getName(), data.get()); TimeUnit.SECONDS.sleep(1); } } I am creating 10 threads and all threads should executing same statement 3 times where this console print statement is executed. however, I am not getting output where I see every thread showing the print in same sequence. e.g.