Click here to Skip to main content
15,888,610 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Plugins and Assembly References Pin
Eugene Ciloci27-Apr-07 12:15
Eugene Ciloci27-Apr-07 12:15 
GeneralRe: Plugins and Assembly References Pin
Steven M Hunt27-Apr-07 12:24
Steven M Hunt27-Apr-07 12:24 
Questionscroll bar issue in MDI Pin
sarah_malik26-Apr-07 5:04
sarah_malik26-Apr-07 5:04 
AnswerRe: scroll bar issue in MDI Pin
Dave Kreskowiak26-Apr-07 5:58
mveDave Kreskowiak26-Apr-07 5:58 
GeneralRe: scroll bar issue in MDI Pin
sarah_malik27-Apr-07 4:38
sarah_malik27-Apr-07 4:38 
QuestionAddin trouble shoot Pin
veron71226-Apr-07 2:46
veron71226-Apr-07 2:46 
QuestionDynamic crystal report in .net Pin
prash.dark25-Apr-07 23:17
prash.dark25-Apr-07 23:17 
QuestionLong operation [modified] Pin
sarah_malik25-Apr-07 15:35
sarah_malik25-Apr-07 15:35 
Hi,

I have a form that takes a number from the user and loops through this number to do some calculations and database access:

for (int i=0; i <NUM; ++i){<br />
//do calculation<br />
// access database<br />
}<br />


my problem here is that:
for example when NUM=1000, it takes 20 seconds to complete, when I tried 1500 it took more than 60 seconds which is unrealistic because each loop takes the same time. I tried to stop the loop when i=1000 but NUM is still = 1500 to see when it does finish, I was shocked to see that 60 seconds was required to do the 1000!! how could this possibly be?

P.S: I did NUM=1200 and 1400 and they all took 20 seconds to complete the 1000!! why does 1500 is different?

another thing, is multithreading useful to speed up long operations?
I have read about it and know that it is useful when I want more than one process to be executed at the same time, but what if I only have one process, does it speed it up or something?

thanks,






-- modified at 21:46 Wednesday 25th April, 2007
AnswerRe: Long operation Pin
Brady Kelly25-Apr-07 19:26
Brady Kelly25-Apr-07 19:26 
GeneralRe: Long operation Pin
Luc Pattyn26-Apr-07 1:28
sitebuilderLuc Pattyn26-Apr-07 1:28 
GeneralRe: Long operation Pin
Brady Kelly26-Apr-07 1:38
Brady Kelly26-Apr-07 1:38 
GeneralRe: Long operation Pin
sarah_malik26-Apr-07 3:09
sarah_malik26-Apr-07 3:09 
AnswerRe: Long operation Pin
pbraun27-Apr-07 5:13
pbraun27-Apr-07 5:13 
GeneralRe: Long operation Pin
sarah_malik27-Apr-07 9:11
sarah_malik27-Apr-07 9:11 
GeneralRe: Long operation Pin
pbraun27-Apr-07 9:28
pbraun27-Apr-07 9:28 
GeneralRe: Long operation Pin
sarah_malik27-Apr-07 10:28
sarah_malik27-Apr-07 10:28 
QuestionAbout multi-threading Pin
Diego F.25-Apr-07 4:51
Diego F.25-Apr-07 4:51 
AnswerRe: About multi-threading Pin
kubben25-Apr-07 5:55
kubben25-Apr-07 5:55 
GeneralRe: About multi-threading Pin
Diego F.26-Apr-07 23:12
Diego F.26-Apr-07 23:12 
GeneralRe: About multi-threading Pin
pbraun27-Apr-07 5:04
pbraun27-Apr-07 5:04 
GeneralRe: About multi-threading Pin
Diego F.30-Apr-07 2:12
Diego F.30-Apr-07 2:12 
QuestionInstall time JIT tutorial Pin
SE_GEEK25-Apr-07 4:39
SE_GEEK25-Apr-07 4:39 
AnswerRe: Install time JIT tutorial Pin
Pete O'Hanlon25-Apr-07 5:14
mvePete O'Hanlon25-Apr-07 5:14 
GeneralRe: Install time JIT tutorial Pin
SE_GEEK27-Apr-07 4:46
SE_GEEK27-Apr-07 4:46 
QuestionTransparency in Txxtbox Pin
sianatia25-Apr-07 2:48
sianatia25-Apr-07 2:48 

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.