identify main thread and compositor thread better