I'm pretty new to threading so apologies if I've not understood correctly. I'm trying to create a thread which will run a background Merge Replication sync on a windows mobile device. I need this to run in the background, doing the sync every few minutes but not holding up the main program in the process.
so, here's the code I've created just to test the principle:
|
I was hoping, that as both the code within 'runtest' and 'threadmethod' are running under seperate threads, I'd see a mixture of 'x' and 'y' in the debug console, indicating that they are both running simultaneously.
however I get this:
|
This seems to be as though the threads aren't running concurrently.
Am I missing something?
Thanks
Ben
Replies
Know the answer? Post it — somebody with the same question will find it here.