|
-
March 9th, 2010, 02:47 AM
#1
Sharing data between threads
hi All,
I am new to c#. I have two threads in my application. One thread (UI thread) takes inputs from user and another thread (worker thread) does some calculation. Now if user clicks stop then worker thread should stop or exit from where it was. But I do not know how to do this in C#. I tried it using static property but no results. If some how I can modify a variable of a class from UI thread and it can be checked in worker thread. Please suggest a way by which I can communicate between 2 threads.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|