Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / March 2005

Tip: Looking for answers? Try searching our database.

multithreading

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kavitha N - 16 Mar 2005 12:54 GMT
Hi
I have written a program which receives mails from server using POP#. it's downloading sequentially. now i want to use the multithreading in this regard where i can create threads for each and every mail...and download those mails simaltaneously.
if u have any idea please help me out.

From: kavitha N
David MS - 17 Mar 2005 01:58 GMT
Hi Kavitha,

The .Net framework SDK has samples on using threading.  If you have the SDK
installed check under Samples for the Threading topics.

If you don't have the SDK you can get it here:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/netdevfram
ework.asp

For more information on the System.Threading namespace check:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemThreading.asp?frame=true

At the most basic, you can start threading a function like this:

 ThreadStart myThreadDelegate = new ThreadStart(myClass.MyFunction);
 Thread myThread = new Thread(myThreadDelegate);
 myThread.Start();

I hope that points you in the right direction.  

Thanks,
David [MS-SDK]

-Please do not send email directly to this alias.  This alias is for
newsgroup purposes only

-This posting is provided ?AS IS? with no warranties, and confers no rights.

-To provide additional feedback about your community experience please send
e-mail to: sdkcomm@microsoft.com
--------------------
>>From:     kavitha N via .NET 247 <anonymous@dotnet247.com>
>>X-Newsreader: AspNNTP 1.50 (Matthew Reynolds Consulting)
[quoted text clipped - 8 lines]
>>Lines: 1        
>>Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
2.phx.gbl
>>Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.sdk:10360
>>X-Tomcat-NG: microsoft.public.dotnet.framework.sdk
>>
>>Hi
>>I have written a program which receives mails from server using POP#. it's downloading sequentially. now i want to use the multithreading in this
regard where i can create threads for each and every mail...and download
those mails simaltaneously.
>>if u have any idea please help me out.
>>
[quoted text clipped - 4 lines]
>>
>><Id>y8r/52uvgEOQvyNt96emuw==</Id>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.