How to determine if task is busy or not?



Is there any way to determine if task is busy or not?

I have pool of worker tasks and I want to choose one of them to give
some work to do.
.