But how the state is changed to WAIT once the worker thread function returned

On Tue, 26 Apr, 2022, 8:26 pm Stephen Hemminger, <stephen@networkplumber.org> wrote:
On Wed, 20 Apr 2022 17:52:20 +0530
Ansar Kannankattil <ansarkannankat@gmail.com> wrote:

> Hi,
> As per my understanding "*rte_eal_wait_lcore" *is a blocking call in case
> of lcore state running.
> 1. Is there any direct way to reuse the lcore which we returned from a
> worker thread?
> 2. Technically is there any issue in reusing the lcore by some means?

Yes just relaunch with new work function.