Prashant Cholachagudda
Prashant Cholachagudda

Reputation: 13090

Get running threads information in an Application

I'm developing desktop application, where I upload series of FPGA files on scanning device, to do this job I have COM DLL provided by driver.

For uploading files I call method named "StartWrite", which start worker thread to write FPGA to device.

And now in C# how do I get list/information (expected execution time etc.) of worker threads in application ?

Upvotes: 0

Views: 678

Answers (1)

jpbochi
jpbochi

Reputation: 4406

How do you suppose any sort of code would be able to tell what is the "expected execution time" of a thread?

I think the best pattern would be if your StartWrite method returned an IAsyncResult. With that, you would be able to check if the writing has ended.

Threading is not a simple subject, though. Here is a good source of information about Threading in C#.

Upvotes: 1

Related Questions