where is this main thread is actually present from where it is automatically called????