ready to call muti-threading function