Click here to Skip to main content
15,906,333 members
Home / Discussions / C#
   

C#

 
GeneralRe: which one is smaller n pow 2, 1000 pow n, n pow n, n pow 1000 , when n value is nearer to infinite Pin
enhzflep5-May-08 6:13
enhzflep5-May-08 6:13 
QuestionPOP3 To send a mail Pin
Member 40084924-May-08 20:07
Member 40084924-May-08 20:07 
AnswerRe: POP3 To send a mail Pin
Christian Graus4-May-08 21:12
protectorChristian Graus4-May-08 21:12 
AnswerRe: POP3 To send a mail Pin
Vasudevan Deepak Kumar4-May-08 22:22
Vasudevan Deepak Kumar4-May-08 22:22 
Questiongenerics type instantiation Pin
George_George4-May-08 19:50
George_George4-May-08 19:50 
AnswerRe: generics type instantiation Pin
Guffa4-May-08 21:54
Guffa4-May-08 21:54 
GeneralRe: generics type instantiation Pin
hoffmale5-May-08 8:40
hoffmale5-May-08 8:40 
GeneralRe: generics type instantiation Pin
Guffa5-May-08 9:04
Guffa5-May-08 9:04 
GeneralRe: generics type instantiation Pin
George_George7-May-08 1:21
George_George7-May-08 1:21 
GeneralRe: generics type instantiation Pin
Guffa7-May-08 6:38
Guffa7-May-08 6:38 
GeneralRe: generics type instantiation Pin
George_George7-May-08 22:20
George_George7-May-08 22:20 
GeneralRe: generics type instantiation Pin
Guffa8-May-08 12:37
Guffa8-May-08 12:37 
GeneralRe: generics type instantiation Pin
George_George8-May-08 22:10
George_George8-May-08 22:10 
GeneralRe: generics type instantiation Pin
George_George7-May-08 1:22
George_George7-May-08 1:22 
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 

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.