Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parallel and Thread running some mission ( code attached ) Pin
Yanshof29-Aug-10 23:55
Yanshof29-Aug-10 23:55 
GeneralRe: Parallel and Thread running some mission ( code attached ) Pin
DaveyM6930-Aug-10 0:23
professionalDaveyM6930-Aug-10 0:23 
Creating a thread is expensive process and unless the task is very long running, creating and destroyng the thread can often take longer than the task itself.

Once all your cores are busy with threads, any others have to be switched around by the OS. This it does quite efficiently but it means that some threads aren't actually doing anything until they alloted some processor time to do it. This switching can actually make an application run slower if too many threads are created.
Dave

If this helped, please vote & accept answer!


Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

GeneralRe: Parallel and Thread running some mission ( code attached ) Pin
Yanshof30-Aug-10 0:50
Yanshof30-Aug-10 0:50 
QuestionAutomatically Install Updated Application Version Pin
PDTUM29-Aug-10 12:34
PDTUM29-Aug-10 12:34 
AnswerRe: Automatically Install Updated Application Version Pin
Luc Pattyn29-Aug-10 12:59
sitebuilderLuc Pattyn29-Aug-10 12:59 
GeneralRe: Automatically Install Updated Application Version Pin
PDTUM29-Aug-10 13:23
PDTUM29-Aug-10 13:23 
GeneralRe: Automatically Install Updated Application Version Pin
Luc Pattyn29-Aug-10 13:42
sitebuilderLuc Pattyn29-Aug-10 13:42 
GeneralRe: Automatically Install Updated Application Version Pin
phil.o29-Aug-10 21:21
professionalphil.o29-Aug-10 21:21 
GeneralRe: Automatically Install Updated Application Version Pin
PDTUM30-Aug-10 3:47
PDTUM30-Aug-10 3:47 
GeneralRe: Automatically Install Updated Application Version Pin
phil.o30-Aug-10 6:02
professionalphil.o30-Aug-10 6:02 
AnswerRe: Automatically Install Updated Application Version [modified] Pin
Sunil G30-Aug-10 3:11
Sunil G30-Aug-10 3:11 
GeneralRe: Automatically Install Updated Application Version Pin
PDTUM30-Aug-10 3:56
PDTUM30-Aug-10 3:56 
GeneralRe: Automatically Install Updated Application Version Pin
Sunil G30-Aug-10 18:13
Sunil G30-Aug-10 18:13 
AnswerRe: Automatically Install Updated Application Version Pin
Matthew Klein30-Aug-10 14:38
Matthew Klein30-Aug-10 14:38 
GeneralRe: Automatically Install Updated Application Version Pin
Luc Pattyn30-Aug-10 14:54
sitebuilderLuc Pattyn30-Aug-10 14:54 
GeneralRe: Automatically Install Updated Application Version Pin
Chuck O'Toole30-Aug-10 16:16
Chuck O'Toole30-Aug-10 16:16 
GeneralRe: Automatically Install Updated Application Version Pin
PDTUM30-Aug-10 16:51
PDTUM30-Aug-10 16:51 
GeneralRe: Automatically Install Updated Application Version Pin
Matthew Klein31-Aug-10 4:44
Matthew Klein31-Aug-10 4:44 
AnswerRe: Automatically Install Updated Application Version Pin
Matthew Klein31-Aug-10 8:27
Matthew Klein31-Aug-10 8:27 
GeneralRe: Automatically Install Updated Application Version Pin
PDTUM31-Aug-10 9:24
PDTUM31-Aug-10 9:24 
AnswerRe: Automatically Install Updated Application Version Pin
Matthew Klein31-Aug-10 10:24
Matthew Klein31-Aug-10 10:24 
QuestionCOM PORT SETTING THROUGH C# IDE Pin
venkat swaminathan29-Aug-10 7:40
venkat swaminathan29-Aug-10 7:40 
QuestionUIS Application\MainDialog.Designer.cs Pin
zhiyuan1629-Aug-10 5:19
zhiyuan1629-Aug-10 5:19 
AnswerRe: UIS Application\MainDialog.Designer.cs Pin
Luc Pattyn29-Aug-10 5:24
sitebuilderLuc Pattyn29-Aug-10 5:24 
GeneralRe: UIS Application\MainDialog.Designer.cs Pin
zhiyuan1629-Aug-10 5:31
zhiyuan1629-Aug-10 5:31 

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.