VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/c-sharp-check-if-a-thread-belongs-to-managed-thread-pool-or-not/

⇱ C# | Check if a thread belongs to managed thread pool or not - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

C# | Check if a thread belongs to managed thread pool or not

Last Updated : 11 Jul, 2025
A Thread class is responsible for creating and managing a thread in multi-thread programming. It provides a property known as IsThreadPoolThread to check if the thread belongs to the managed thread pool or not. Syntax:
public bool IsThreadPoolThread { get; }
Return Value: This property returns true if the given thread belongs to the managed thread pool. Otherwise, return false. The return type of this property is System.Boolean. Below programs illustrate the use of IsThreadPoolThread property: Example 1: Output:
Is main thread belongs to Thread pool? : False 
Example 2:
Output:
Is thread 1 belongs to thread pool: False
Is thread 2 belongs to thread pool: True
Reference:
Comment

Explore