Click here to Skip to main content
15,499,430 members
Home / Discussions / C#
   

C#

 
AnswerRe: how do i display http fields Pin
OriginalGriff9-May-13 4:54
mveOriginalGriff9-May-13 4:54 
QuestionHTML, RTF or WordML? Pin
Jassim Rahma9-May-13 0:47
MemberJassim Rahma9-May-13 0:47 
AnswerRe: HTML, RTF or WordML? Pin
Abhinav S9-May-13 1:33
MemberAbhinav S9-May-13 1:33 
AnswerRe: HTML, RTF or WordML? Pin
Dave Kreskowiak9-May-13 2:40
mveDave Kreskowiak9-May-13 2:40 
QuestionLogin Form in Visual studio 2008 c# Pin
Akash Bharatvala9-May-13 0:18
MemberAkash Bharatvala9-May-13 0:18 
AnswerRe: Login Form in Visual studio 2008 c# Pin
Abhinav S9-May-13 1:23
MemberAbhinav S9-May-13 1:23 
AnswerRe: Login Form in Visual studio 2008 c# Pin
Bikash Prakash Dash12-May-13 22:48
MemberBikash Prakash Dash12-May-13 22:48 
QuestionPerformance issue using Multi threading in Net 3.5 Pin
KIDYA8-May-13 21:35
MemberKIDYA8-May-13 21: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 22:10
MemberAbhinav S8-May-13 22:10 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
KIDYA8-May-13 22:37
MemberKIDYA8-May-13 22:37 
AnswerRe: Performance issue using Multi threading in Net 3.5 Pin
Abhinav S9-May-13 1:09
MemberAbhinav S9-May-13 1:09 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
harold aptroot8-May-13 22:44
Memberharold aptroot8-May-13 22:44 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
KIDYA9-May-13 0:25
MemberKIDYA9-May-13 0:25 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
harold aptroot9-May-13 0:37
Memberharold aptroot9-May-13 0:37 
GeneralRe: Performance issue using Multi threading in Net 3.5 Pin
KIDYA9-May-13 1:08
MemberKIDYA9-May-13 1:08 
QuestionNeed your opinion on querying data for presentation on winforms / web page and for reports Pin
Nayan Ambaliya8-May-13 16:03
MemberNayan Ambaliya8-May-13 16:03 
QuestionRe: Need your opinion on querying data for presentation on winforms / web page and for reports Pin
Richard MacCutchan8-May-13 21:43
mveRichard MacCutchan8-May-13 21:43 
AnswerRe: Need your opinion on querying data for presentation on winforms / web page and for reports Pin
Abhinav S8-May-13 22:13
MemberAbhinav S8-May-13 22:13 
Questionhow to develop a client server encrypt commincation using one time pad Pin
Member 100380688-May-13 11:21
MemberMember 100380688-May-13 11:21 
AnswerRe: how to develop a client server encrypt commincation using one time pad Pin
Eddy Vluggen8-May-13 11:54
professionalEddy Vluggen8-May-13 11:54 
GeneralRe: how to develop a client server encrypt commincation using one time pad Pin
Member 100380688-May-13 12:04
MemberMember 100380688-May-13 12:04 
GeneralRe: how to develop a client server encrypt commincation using one time pad Pin
Eddy Vluggen8-May-13 12:14
professionalEddy Vluggen8-May-13 12:14 
QuestionEffective Coding Style to build a Class Library Pin
Bikash Prakash Dash8-May-13 10:55
MemberBikash Prakash Dash8-May-13 10:55 
AnswerRe: Effective Coding Style to build a Class Library Pin
Eddy Vluggen8-May-13 11:48
professionalEddy Vluggen8-May-13 11:48 
QuestionHelp with mutex, cannot get mutex to work Pin
turbosupramk38-May-13 8:06
Memberturbosupramk38-May-13 8: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.