hello
I'm looking to to have my instances of an object run asynchronously, e.g. do work at the same time
how would I go about doing this? I know how to make a thread inside one class and have it execute one function over and over, but my class has many functions within and I need to make the whole class run inside a thread.
any help greatly appreciated! thanks! :D
Loading

Sam HobbsRank #107 · 20.5K reputationPosted Nov 7, 2009, 10:03 AM EST
Elina5 reputationPosted Nov 7, 2009, 10:09 AM EST
The class does not talk to the window which is Form1, that is done by a thread which polls the classes for new messages (if instance[0].messageQueue.Count > 0) in that fashion
so they are independent, and independet from eachother as well
just need them to run simultaneously so I don't need to run multiple copies of the software
Sam HobbsRank #107 · 20.5K reputationPosted Nov 7, 2009, 10:35 AM EST
Elina5 reputationPosted Nov 7, 2009, 11:02 AM EST
currently they run after each other
I need them to run with each other, at the same time
Danatas GerviRank #4,152 · 361 reputationPosted Nov 7, 2009, 10:23 PM EST
How many instances of classes do you have?
Sam HobbsRank #107 · 20.5K reputationPosted Nov 8, 2009, 1:30 PM EST