Initiation of detection and election threads