contestada

Its general form is shown here: static thread currentthread(), this method returns a reference to the thread in which it is called. therefore, if you call curentthread() while execution is inside the mian thread, you will obtain a reference to the main thread. once you have this reference, you can control the main thread just like any other thread.