By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,579 Members | 1,765 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,579 IT Pros & Developers. It's quick & easy.

What is threading?

P: n/a
I see all kinds of threading but there is nothing explaining thread.
Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hi,

Running more than one procedure at the same time.

Ken
--------------------
"George Medlock" <ge***********@bellsouth.net> wrote in message
news:2S*******************@bignews5.bellsouth.net. ..
I see all kinds of threading but there is nothing explaining thread.

Nov 21 '05 #2

P: n/a
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" <ge***********@bellsouth.net> wrote in message
news:2S*******************@bignews5.bellsouth.net. ..
I see all kinds of threading but there is nothing explaining thread.

Nov 21 '05 #3

P: n/a
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" <ge***********@bellsouth.net> wrote in message
news:2S*******************@bignews5.bellsouth.net. ..
I see all kinds of threading but there is nothing explaining thread.


Nov 21 '05 #4

P: n/a
"George Medlock" <ge***********@bellsouth.net> schrieb:
I see all kinds of threading but there is nothing explaining thread.


Thread (computer science)
<URL:http://en.wikipedia.org/wiki/Multithreading>

The .NET documentation contains chapters about (multi)threading with the
..NET Framework.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

P: n/a
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

Nov 21 '05 #6

P: n/a
Its a description designed for someone who doesn't understand threading,
hence the staement more or less the same time.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:83**********************************@microsof t.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" <ge***********@bellsouth.net> wrote in message
news:2S*******************@bignews5.bellsouth.net. ..
I see all kinds of threading but there is nothing explaining thread.


Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.