title: How to detect if there is any idle thread in a ThreadPool?
body: <p>I created a threadpool with the value of 5. After assigning the tasks to 5 threads, the worker should wait to create the thread until a thread get free in Threadpool. So, how to find, is any thread is free in a threadpool?</p>
  
  <p>Thanks in advance....</p>