What is threading?

  • Thread starter Thread starter George Medlock
  • Start date Start date
G

George Medlock

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.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
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.
 
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.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Battlefield 2042 10
Threads question 3
Starting a Thread takes too long 25
Access Textbox - Hide Cursor 0
Watched threads ??? 3
USB extenders, what can I do? 4
invoking on the UI thread 5
threading questions 6

Back
Top