473,395 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

What is threading?

I see all kinds of threading but there is nothing explaining thread.
Nov 21 '05 #1
6 1033
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
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
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
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Egor Bolonev | last post by:
hi all my program terminates with error i dont know why it tells 'TypeError: run() takes exactly 1 argument (10 given)' =program==================== import os, os.path, threading, sys def...
4
by: Lionel van den Berg | last post by:
Hi all, I'm just wondering what's the best option for threading in C++? I've used pthreads and forking in C (the latter is not appropriate for my situation now). All I want to do is run a...
7
by: Anthony Nystrom | last post by:
What is the correct way to stop a thread? abort? sleep? Will it start up again... Just curious... If the thread is enabling a form, if the form is disposed is the thread as well? Thanks, ...
0
by: Colmeister | last post by:
I recently read Jason Clark's excellent article on Unhandled Exceptions (http://msdn.microsoft.com/msdnmag/issues/04/06/NET/default.aspx) and have attempted to incorporate the features he talks...
9
by: akrapus | last post by:
Hi, I am trying to understand how to use threading in Python. I get threading as a concept, but not the implementation. In order to start threading, do you call it as a separate function,...
0
by: kingcrowbar.list | last post by:
Hello Everyone I have been playing a little with pyGTK and threading to come up with simple alert dialog which plays a sound in the background. The need for threading came when in the first...
7
by: Mike P | last post by:
I am trying to write my first program using threading..basically I am moving messages from an Outlook inbox and want to show the user where the process is up to without having to wait until it has...
2
by: Matthew Wilson | last post by:
In this code, I tried to kill my thread object by setting a variable on it to False. Inside the run method of my thread object, it checks a different variable. I've already rewritten this...
5
by: Chuckk Hubbard | last post by:
#!/usr/bin/python #why doesn't this run both threads simultaneously? #Thanks for any help. #Chuckk import threading import time def printesc(thrd):
167
by: darren | last post by:
Hi I have to write a multi-threaded program. I decided to take an OO approach to it. I had the idea to wrap up all of the thread functions in a mix-in class called Threadable. Then when an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.