G
Guest
Hi am writing an application which involves a long loop inside a loop. this
loop can work independently too. so i want to do something like this
for(int i=0;i<5000;i++){
if(some Condition){
raiseEvent
}
}
//in event handler
Thread t=new Thread(this.somemethod);
t.Start()l
//in somemethod
some very log process
So what are the problems i am going to run into.
Whats the better alternative
loop can work independently too. so i want to do something like this
for(int i=0;i<5000;i++){
if(some Condition){
raiseEvent
}
}
//in event handler
Thread t=new Thread(this.somemethod);
t.Start()l
//in somemethod
some very log process
So what are the problems i am going to run into.
Whats the better alternative