Output

The sample output might appear different each time the sample program executes because it depends on the execution order of the threads.
Thread id 0 fetched value 1 from t1
Thread id 2 fetched value 2 from t1
Thread id 3 fetched value 3 from t1
Thread id 4 fetched value 4 from t1
Thread id 5 fetched value 5 from t1
Thread id 1 fetched value 6 from t1 

In this output, Thread 1 fetches the last record in the table.