|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
What is threading?I see all kinds of threading but there is nothing explaining thread.
Its a way of running methods at the same time that other methods are
running. Normally in a single threaded application only 1 method at a time runs, sequentially usually - so that the code executes from main, through your code, calling methods one after the other in a top to bottom type of approach. Multithreaded applications provide the ability to allow numerous activities to happen at more or less the same time, so for example the same method or class can be invoked and can be executing many times in many threads at the same time and not usually impact the work each is doing. Best way to understand them is to create a small example for yourself, theres stacks on the web. -- Show quoteHide quoteRegards John Timney ASP.NET MVP Microsoft Regional Director "George Medlock" <georgemedl***@bellsouth.net> wrote in message news:2SG0e.62124$Q83.57478@bignews5.bellsouth.net... > I see all kinds of threading but there is nothing explaining thread. > > I'm sure everyone knows that on a single processor machine, the threads don't
run "at the same time". They are time sliced such that each gets it's turn at some processor (CPU) time depending on the thread priority. Show quoteHide quote "John Timney (ASP.NET MVP)" wrote: > Its a way of running methods at the same time that other methods are > running. Normally in a single threaded application only 1 method at a time > runs, sequentially usually - so that the code executes from main, through > your code, calling methods one after the other in a top to bottom type of > approach. > > Multithreaded applications provide the ability to allow numerous activities > to happen at more or less the same time, so for example the same method or > class can be invoked and can be executing many times in many threads at the > same time and not usually impact the work each is doing. > > Best way to understand them is to create a small example for yourself, > theres stacks on the web. > > -- > Regards > > John Timney > ASP.NET MVP > Microsoft Regional Director > > "George Medlock" <georgemedl***@bellsouth.net> wrote in message > news:2SG0e.62124$Q83.57478@bignews5.bellsouth.net... > > I see all kinds of threading but there is nothing explaining thread. > > > > > > > George,
Multithreading is using assynchronous parallel processes. Where that can be with more or hyperthreading processors doing computercommands real parallel and with a single processor doing the computercommands in a more sequential way (however sliced) one by one. I hope this gives an idea. Cor Its a description designed for someone who doesn't understand threading,
hence the staement more or less the same time. -- Show quoteHide quoteRegards John Timney ASP.NET MVP Microsoft Regional Director "Dennis" <Den***@discussions.microsoft.com> wrote in message news:83D9F008-F76F-4DFF-850E-7012A8AB6400@microsoft.com... > I'm sure everyone knows that on a single processor machine, the threads don't > run "at the same time". They are time sliced such that each gets it's turn > at some processor (CPU) time depending on the thread priority. > > "John Timney (ASP.NET MVP)" wrote: > > > Its a way of running methods at the same time that other methods are > > running. Normally in a single threaded application only 1 method at a time > > runs, sequentially usually - so that the code executes from main, through > > your code, calling methods one after the other in a top to bottom type of > > approach. > > > > Multithreaded applications provide the ability to allow numerous activities > > to happen at more or less the same time, so for example the same method or > > class can be invoked and can be executing many times in many threads at the > > same time and not usually impact the work each is doing. > > > > Best way to understand them is to create a small example for yourself, > > theres stacks on the web. > > > > -- > > Regards > > > > John Timney > > ASP.NET MVP > > Microsoft Regional Director > > > > "George Medlock" <georgemedl***@bellsouth.net> wrote in message > > news:2SG0e.62124$Q83.57478@bignews5.bellsouth.net... > > > I see all kinds of threading but there is nothing explaining thread. > > > > > > > > > > > >
Anyone tried REALbasic?
ArrayList Strongly Typed VB6 easier than VB.NET? Datagrid colum sorting problem - URGENT How to implement ComboBox.FindValue HELP! Cannot start NEW project VB6 to VB.NET dlls Cookies working on intranet but NOT working on Internet vb.net dll Windows Form DataGrid - Need A Color Border Around Only The Selected Row - Will GDI Be Required |
|||||||||||||||||||||||