what if i start a thread in infinite loop and update my database : please refer below code:

public class InfiniteThreads {

public static int cnt=0;

public static void main(String[] args) {

while (true) {          

new MyThread().start();

}

}

 public void run(){

        //  I am updating a database,(if false, then update to true)

    }
}

And suppose my database is

id      b_status

1           false

2           false

3           false


So my question is, every time I create a new thread my run method will update a row. But as this thread creation is inside an infinite loop, how will my updation work?

Will it keep on updating my database?

Or, first thread will update first row, second will update second?
