C# start a static thread

Posted by user595605 on Stack Overflow See other posts from Stack Overflow or by user595605
Published on 2011-01-30T07:17:00Z Indexed on 2011/01/30 7:25 UTC
Read the original article Hit count: 129

Filed under:
|
|

I have a Queue of items I want to process in a thread, and any instance of a class can add items to the Queue to be processed.

My idea for doing this is to have a static Thread in the class that processes the items, the only problem is that I don't know where to start this thread, since I can't start it in its initialization.

Is there a way I can start a static thread? Or should I be changing the architecture completely?

© Stack Overflow or respective owner

Related posts about c#

Related posts about multithreading