0
I don't get the concept of threads pls help
3 ответов
+ 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.
+ 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
0
thread is part of work .complete work can be devided into the number threads each thread executed separatly