Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
GeneralRe: generics type instantiation Pin
George_George7-May-08 1:19
George_George7-May-08 1:19 
GeneralRe: generics type instantiation [modified] Pin
Guffa7-May-08 6:32
Guffa7-May-08 6:32 
GeneralRe: generics type instantiation Pin
George_George7-May-08 22:13
George_George7-May-08 22:13 
GeneralRe: generics type instantiation Pin
Guffa8-May-08 12:43
Guffa8-May-08 12:43 
GeneralRe: generics type instantiation Pin
George_George8-May-08 22:05
George_George8-May-08 22:05 
GeneralRe: generics type instantiation Pin
Guffa9-May-08 1:39
Guffa9-May-08 1:39 
GeneralRe: generics type instantiation Pin
George_George10-May-08 22:02
George_George10-May-08 22:02 
QuestionMultiThreading in C#.Net Web Application Pin
kc_krishnan4-May-08 19:21
kc_krishnan4-May-08 19:21 
Hi All,
My requirement is to call a function for creating data in one system.Each function calls will create one user credentials in the system and for this i'm calling this function inside a "for" loop.And after the call returns im showing the result for each input in a datagrid.but this is consuming lot of time.
Coming to the point i want this to be executed using Threading.But i'm still a amateur in threading concept.I want the main thread to wait till all the worker threads completes it job and then execute the part where the result is shown.

The code snippet is like this

for(int i=0;i<noofusers;i++){>
userResult=callFunction(userDetails); //the function which i need to be called using threads
datagrid.source=userResult; //i want the for loop to continue but this binding should not happen until the current worker thread returns the result.
datagrid.bind();
} //i want the main thread not to go out of this loop until all worker thread returns or completes


private Result callFunction(){
......//here the user will be created in the system...
return result;
}


Please help me in this issue.

--
Thanks and Regards
KC
AnswerRe: MultiThreading in C#.Net Web Application Pin
Christian Graus4-May-08 19:48
protectorChristian Graus4-May-08 19:48 
GeneralRe: MultiThreading in C#.Net Web Application Pin
kc_krishnan4-May-08 23:39
kc_krishnan4-May-08 23:39 
GeneralRe: MultiThreading in C#.Net Web Application Pin
Christian Graus4-May-08 23:55
protectorChristian Graus4-May-08 23:55 
QuestionUnauthorised User pop up comes while accessing from other systems... Pin
ananthrahul4-May-08 19:09
ananthrahul4-May-08 19:09 
AnswerRe: Unauthorised User pop up comes while accessing from other systems... Pin
Christian Graus4-May-08 19:14
protectorChristian Graus4-May-08 19:14 
GeneralRe: Unauthorised User pop up comes while accessing from other systems... Pin
ananthrahul4-May-08 19:40
ananthrahul4-May-08 19:40 
GeneralRe: Unauthorised User pop up comes while accessing from other systems... Pin
Christian Graus4-May-08 19:49
protectorChristian Graus4-May-08 19:49 
GeneralRe: Unauthorised User pop up comes while accessing from other systems... Pin
ananthrahul4-May-08 20:23
ananthrahul4-May-08 20:23 
GeneralRe: Unauthorised User pop up comes while accessing from other systems... Pin
Christian Graus4-May-08 21:11
protectorChristian Graus4-May-08 21:11 
QuestionHow to return to application during OnClosing event? Pin
cocoonwls4-May-08 17:44
cocoonwls4-May-08 17:44 
AnswerRe: How to return to application during OnClosing event? Pin
Christian Graus4-May-08 18:46
protectorChristian Graus4-May-08 18:46 
AnswerRe: How to return to application during OnClosing event? Pin
Vikram A Punathambekar4-May-08 18:56
Vikram A Punathambekar4-May-08 18:56 
GeneralRe: How to return to application during OnClosing event? Pin
Christian Graus4-May-08 19:01
protectorChristian Graus4-May-08 19:01 
GeneralRe: How to return to application during OnClosing event? Pin
cocoonwls4-May-08 19:37
cocoonwls4-May-08 19:37 
GeneralRe: How to return to application during OnClosing event? Pin
S. Senthil Kumar5-May-08 4:47
S. Senthil Kumar5-May-08 4:47 
GeneralOT Pin
Vikram A Punathambekar5-May-08 5:03
Vikram A Punathambekar5-May-08 5:03 
GeneralRe: OT Pin
S. Senthil Kumar5-May-08 5:36
S. Senthil Kumar5-May-08 5:36 

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.