Click here to Skip to main content
15,881,880 members
Home / Discussions / C#
   

C#

 
AnswerRe: how do i display http fields Pin
OriginalGriff9-May-13 3:54
mveOriginalGriff9-May-13 3:54 
QuestionHTML, RTF or WordML? Pin
Jassim Rahma8-May-13 23:47
Jassim Rahma8-May-13 23:47 
AnswerRe: HTML, RTF or WordML? Pin
Abhinav S9-May-13 0:33
Abhinav S9-May-13 0:33 
AnswerRe: HTML, RTF or WordML? Pin
Dave Kreskowiak9-May-13 1:40
mveDave Kreskowiak9-May-13 1:40 
QuestionLogin Form in Visual studio 2008 c# Pin
Akash Bharatvala8-May-13 23:18
Akash Bharatvala8-May-13 23:18 
AnswerRe: Login Form in Visual studio 2008 c# Pin
Abhinav S9-May-13 0:23
Abhinav S9-May-13 0:23 
AnswerRe: Login Form in Visual studio 2008 c# Pin
Bikash Prakash Dash12-May-13 21:48
Bikash Prakash Dash12-May-13 21:48 
QuestionPerformance issue using Multi threading in Net 3.5 Pin
KIDYA8-May-13 20:35
KIDYA8-May-13 20:35 
Hello All,

I'm using Dot Net 3.5 for performing tasks in parallel using below code but It's not showing expected performance i.e. if serial task takes 1 min then using multitasking/parallel tasking it will finish within 1 min or much less time but it takes same time.

Code Snippet:

C#
// Initialize the reset events to keep track of completed threads
               ManualResetEvent[] resetEvents = new ManualResetEvent[arrFileName.Count];

               // Launch each method in it's own thread
               for (int i = 0; i < arrFileName.Count; i++)
               {
                   resetEvents[i] = new ManualResetEvent(false);
                   ThreadPool.QueueUserWorkItem(new WaitCallback((object index) =>
                   {
                       int actionIndex = (int)index;

                       // Execute the method
                       ThreadExcecute(arrFileName[actionIndex]);

                       // Tell the calling thread that we're done
                       resetEvents[actionIndex].Set();
                   }), i);
               }

               // Wait for all threads to execute
               WaitHandle.WaitAll(resetEvents);


Any suggestion?
AnswerRe: Performance issue using Multi threading in Net 3.5 Pin
Abhinav S8-May-13 21:10
Abhinav S8-May-13 21:10 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
KIDYA8-May-13 21:37
KIDYA8-May-13 21:37 
AnswerRe: Performance issue using Multi threading in Net 3.5 Pin
Abhinav S9-May-13 0:09
Abhinav S9-May-13 0:09 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
harold aptroot8-May-13 21:44
harold aptroot8-May-13 21:44 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
KIDYA8-May-13 23:25
KIDYA8-May-13 23:25 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
harold aptroot8-May-13 23:37
harold aptroot8-May-13 23:37 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
KIDYA9-May-13 0:08
KIDYA9-May-13 0:08 
QuestionNeed your opinion on querying data for presentation on winforms / web page and for reports Pin
Nayan Ambaliya8-May-13 15:03
Nayan Ambaliya8-May-13 15:03 
QuestionRe: Need your opinion on querying data for presentation on winforms / web page and for reports Pin
Richard MacCutchan8-May-13 20:43
mveRichard MacCutchan8-May-13 20:43 
AnswerRe: Need your opinion on querying data for presentation on winforms / web page and for reports Pin
Abhinav S8-May-13 21:13
Abhinav S8-May-13 21:13 
Questionhow to develop a client server encrypt commincation using one time pad Pin
Member 100380688-May-13 10:21
Member 100380688-May-13 10:21 
AnswerRe: how to develop a client server encrypt commincation using one time pad Pin
Eddy Vluggen8-May-13 10:54
professionalEddy Vluggen8-May-13 10:54 
GeneralRe: how to develop a client server encrypt commincation using one time pad Pin
Member 100380688-May-13 11:04
Member 100380688-May-13 11:04 
GeneralRe: how to develop a client server encrypt commincation using one time pad Pin
Eddy Vluggen8-May-13 11:14
professionalEddy Vluggen8-May-13 11:14 
QuestionEffective Coding Style to build a Class Library Pin
Bikash Prakash Dash8-May-13 9:55
Bikash Prakash Dash8-May-13 9:55 
AnswerRe: Effective Coding Style to build a Class Library Pin
Eddy Vluggen8-May-13 10:48
professionalEddy Vluggen8-May-13 10:48 
QuestionHelp with mutex, cannot get mutex to work Pin
turbosupramk38-May-13 7:06
turbosupramk38-May-13 7:06 

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.