Tips and Tricks in a world of Mix

There are several scenarios in which it is appropriate to create and manage your own threads instead of using thread pool threads:

You require a foreground thread.

You require a thread to have a particular priority.

You have tasks that cause the thread to block for long periods of time. The thread pool has a maximum number of threads, so a large number of blocked thread pool threads might prevent tasks from starting.

You need to place threads into a single-threaded apartment. All ThreadPool threads are in the multithreaded apartment.

You need to have a stable identity associated with the thread, or to dedicate a thread to a task.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: