Home » Community » Newbie corner » Multi-Threading newbie questions
Multi-Threading newbie questions [message #37902] |
Wed, 21 November 2012 11:55  |
navi
Messages: 107 Registered: February 2012 Location: Sydney, Australia
|
Experienced Member |
|
|
I have checked the Example, Bazzar and have search the Forum for a beginner’s guide/example for Multi-Threading/CoWork
I found the followings CoWork, GuiMT, GuiLock and few other MT Server examples. I am still as confused as when I started with this topic. Is there an easy example or beginner’s guide exist for how to Multi-Thread anywhere?
What I am trying to achieve is the following:
I have 2 Vectors in my MainWindow Class. I am trying to Create a WorkerFunction(Vector<String>& a, Vector<String>& b) which will copy Vector ‘a’ into Vector ‘b’ element by element and also need to notify the MainWindow about its progress i.e how many element has currently been copied. How do I create the thread? Should I use Thread() or CoWork? what would happen if while the Worker is running and the user closed the MainWindow?
Thanks & Regards
Navi
[Updated on: Wed, 21 November 2012 12:00] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Apr 30 16:35:39 CEST 2025
Total time taken to generate the page: 0.00471 seconds
|