Threading
-
Hi, What is the diffrent between threading and multi threading? Is there any concept called single threading? Thankyou YPKI
-
Hi, What is the diffrent between threading and multi threading? Is there any concept called single threading? Thankyou YPKI
Well, you can have a single thread running. This means you have 'some code' + a 'thread', with multithreading you have several threads running paralel to each other, like this: 'some code' + a 'thread' + a 'thread' etc. So you can say single threading is just one thread.
-
Hi, What is the diffrent between threading and multi threading? Is there any concept called single threading? Thankyou YPKI
hmmmm... multi threading is where more than one thread is used in an application. The main benifit of this would be to perform tasks while alowing other task to continue thier work at the same time. A windows form application initially will run on one thread, commonly called the UIThread, all User Interaction with the application therefore runs on a single thread. In this case any tasks which may take more than a seconds or two to complete should be run on a seperate thread. This gives the UIThread the freedom to handle further User Interaction without seeming that the application has frozen. So single threading is basically what you get as standard with any program that has not created any other threads within it.
Life goes very fast. Tomorrow, today is already yesterday.
-
Hi, What is the diffrent between threading and multi threading? Is there any concept called single threading? Thankyou YPKI
When a piece of work is being carried using the default thread, then you want to do another piece of work but the first process is still running then you'll have to wait until the first process finishes so the compiler stack moves to the next process and that would be the case of a single threaded module. Unlike the single threaded designs, you can run more than one process simultaneously. You might wanna read about
BackgroundWorker
and maybe delegates as well.
All generalizations are wrong, including this one! (\ /) (O.o) (><)