0

I don't get the concept of threads pls help

2nd Sep 2016, 9:34 AM
Abdallah Ben Salif
Abdallah Ben Salif - avatar
3 Answers
+ 2
OK, you're the man and you have work to do, but you can only do the work one at a time. Or you can hire help and delegate some of the work to them, now you complete more of the work at the same time but since you are the man you have to delegate more work to them when they finish previous work, you have to check on them and basically coordinate 'the project'. If you're stuck nothing is done because they can't do anything without your directions, so probably you're only delegate work to them and oversee them. You're the main thread, the hires are the working threads. If the main thread is busy the app looks stuck that's why you place intensive work on worker threads because the main thread takes care of the user input and various events.
5th Nov 2016, 6:48 PM
Eduard Alexandru
Eduard Alexandru - avatar
+ 1
With threads you can basically just do two or more things at the same time. First you need to understand the objects thing and then you will understand threads too :D
27th Sep 2016, 8:41 AM
MM1132
MM1132 - avatar
0
thread is part of work .complete work can be devided into the number threads each thread executed separatly
5th Nov 2016, 1:09 PM
Anand
Anand - avatar