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 HobbsPosted Nov 8, 2009, 6:30 PM
Danatas GerviPosted Nov 8, 2009, 3:23 AM
How many instances of classes do you have?
ElinaPosted Nov 7, 2009, 4:02 PM
currently they run after each other
I need them to run with each other, at the same time
Sam HobbsPosted Nov 7, 2009, 3:35 PM
ElinaPosted Nov 7, 2009, 3:09 PM
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 HobbsPosted Nov 7, 2009, 3:03 PM