Hi,
I was wondering how in C# one would go about creating a worker thread, and after the Start Method is finished, have the thread preform another task.

For example:

I create a thread, and pass path[0].calculate.
Now once that is complete I would like to be able to on the same thread without creating a new one call path[1].calculate.

How would I go about doing this?
Thanks

You can use BackgroundWorker component which has something to do and has event "work compeleted"

Hey thank you so much. I didn't think to look under System.ComponetModel. That should help a lot.

If it works with you please mark this thread as solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.