Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
QuestionRe: System.StackOverflowException was unhandled Pin
cuongmits21-Apr-08 20:27
cuongmits21-Apr-08 20:27 
GeneralRe: System.StackOverflowException was unhandled Pin
Yusuf22-Apr-08 1:35
Yusuf22-Apr-08 1:35 
GeneralMulti threading To my Search Program Pin
shinboxe21-Apr-08 1:39
shinboxe21-Apr-08 1:39 
GeneralRe: Multi threading To my Search Program Pin
J4amieC21-Apr-08 2:15
J4amieC21-Apr-08 2:15 
GeneralRe: Multi threading To my Search Program Pin
shinboxe21-Apr-08 3:35
shinboxe21-Apr-08 3:35 
GeneralRe: Multi threading To my Search Program Pin
Simon P Stevens21-Apr-08 3:35
Simon P Stevens21-Apr-08 3:35 
GeneralRe: Multi threading To my Search Program Pin
shinboxe21-Apr-08 3:54
shinboxe21-Apr-08 3:54 
GeneralRe: Multi threading To my Search Program Pin
Simon P Stevens21-Apr-08 4:22
Simon P Stevens21-Apr-08 4:22 
shinboxe wrote:
threadpool<>multi threads <-- what's the difference??


Think of the thread pool as a pot of ready made threads available for you to use. Threads are relatively costly to create and manage, so if you just want to do some quick and simple actions on separate threads, you can request some threads from the pool, use them, then give them back when your finished. The thread pool will give you threads to meet your needs but when you've finished and you hand them back to the pool, it might keep them around and reuse them for other applications who use the pool rather than destroying and creating new threads every time someone needs them.

The disadvantage is that you lose some control over exactly how many threads you create and various other details like thread priority and stuff. You just tell the pool what jobs you want done with ThreadPool.QueueUserWorkItem(), and the pool will manage the threads for you.

There are lots of different ways to work with Threads, and it's not a simple topic, so I would suggest you get a good .Net book. "CLR via C#" and "Pro C# 2008 & the .Net 3.5 platform" both have good chapters on async operations and thread synchronisation with .Net


Simon

GeneralRe: Multi threading To my Search Program Pin
shinboxe21-Apr-08 8:57
shinboxe21-Apr-08 8:57 
Questionhow to know that an internet connection is alive at some instant? Pin
ptr2void21-Apr-08 1:03
ptr2void21-Apr-08 1:03 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
phannon8621-Apr-08 1:16
professionalphannon8621-Apr-08 1:16 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
ptr2void21-Apr-08 1:25
ptr2void21-Apr-08 1:25 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
Pete O'Hanlon21-Apr-08 1:44
mvePete O'Hanlon21-Apr-08 1:44 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
ptr2void21-Apr-08 1:54
ptr2void21-Apr-08 1:54 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
Pete O'Hanlon21-Apr-08 2:00
mvePete O'Hanlon21-Apr-08 2:00 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
Mustafa Ismail Mustafa21-Apr-08 2:02
Mustafa Ismail Mustafa21-Apr-08 2:02 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
J4amieC21-Apr-08 3:15
J4amieC21-Apr-08 3:15 
GeneralRe: how to know that an internet connection is alive at some instant? Pin
Mustafa Ismail Mustafa21-Apr-08 8:13
Mustafa Ismail Mustafa21-Apr-08 8:13 
Generalmake richtextbox transparent Pin
kamalesh574321-Apr-08 0:11
kamalesh574321-Apr-08 0:11 
GeneralRe: make richtextbox transparent Pin
Blue_Boy21-Apr-08 0:36
Blue_Boy21-Apr-08 0:36 
GeneralGet all tables in sql server instance Pin
hdv21220-Apr-08 23:57
hdv21220-Apr-08 23:57 
GeneralRe: Get all tables in sql server instance Pin
Mustafa Ismail Mustafa21-Apr-08 0:06
Mustafa Ismail Mustafa21-Apr-08 0:06 
GeneralRe: Get all tables in sql server instance Pin
Blue_Boy21-Apr-08 0:19
Blue_Boy21-Apr-08 0:19 
GeneralRe: Get all tables in sql server instance Pin
hdv21221-Apr-08 0:41
hdv21221-Apr-08 0:41 
GeneralRe: Get all tables in sql server instance Pin
Colin Angus Mackay21-Apr-08 1:21
Colin Angus Mackay21-Apr-08 1:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.