Click here to Skip to main content
15,885,757 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Register mshtml dll in to GAC ? Urgent. Pin
Jacobb Michael31-Oct-09 0:52
Jacobb Michael31-Oct-09 0:52 
GeneralRe: How to Register mshtml dll in to GAC ? Urgent. Pin
Christian Graus31-Oct-09 0:53
protectorChristian Graus31-Oct-09 0:53 
QuestionHow to monitor the speed of writting into or reading out from the hard disk? Pin
sinron30-Oct-09 20:17
sinron30-Oct-09 20:17 
AnswerRe: How to monitor the speed of writting into or reading out from the hard disk? Pin
Christian Graus30-Oct-09 20:33
protectorChristian Graus30-Oct-09 20:33 
GeneralRe: How to monitor the speed of writting into or reading out from the hard disk? Pin
sinron30-Oct-09 23:07
sinron30-Oct-09 23:07 
GeneralRe: How to monitor the speed of writting into or reading out from the hard disk? Pin
Christian Graus31-Oct-09 0:54
protectorChristian Graus31-Oct-09 0:54 
GeneralRe: How to monitor the speed of writting into or reading out from the hard disk? Pin
Eddy Vluggen31-Oct-09 1:04
professionalEddy Vluggen31-Oct-09 1:04 
Questionis this a cache problem or what? Pin
niranjanR30-Oct-09 18:22
niranjanR30-Oct-09 18:22 
I am starter in C# programming and I tried my hands at multi-threaded programming.I used an algorithm and run its thread concurrently to call a function which has the following body.

lock (currlock) {

      if (N[int1] > N[int2]) {
          temp = N[int1];
          N[int1] = N[int2];
          N[int2] = temp;
      }


       //showArray(N);

 }//end lock

I call showArray(N); before and after the execution of the sorting code.
If I run this code there will be no error but the output array displayed will seen unsorted.
However, if I uncomment the showArray(N); or if I put any Console.writeline("..."); the array displayed will come sorted. I am very much surprised as well as confused on this issue... I can't resolve it... I thank you in advance for any help.


Raj
AnswerRe: is this a cache problem or what? Pin
Christian Graus30-Oct-09 19:17
protectorChristian Graus30-Oct-09 19:17 
GeneralRe: is this a cache problem or what? Pin
niranjanR30-Oct-09 19:44
niranjanR30-Oct-09 19:44 
GeneralRe: is this a cache problem or what? Pin
Christian Graus30-Oct-09 20:07
protectorChristian Graus30-Oct-09 20:07 
GeneralRe: is this a cache problem or what? Pin
niranjanR30-Oct-09 20:24
niranjanR30-Oct-09 20:24 
GeneralRe: is this a cache problem or what? Pin
Christian Graus30-Oct-09 20:30
protectorChristian Graus30-Oct-09 20:30 
GeneralRe: is this a cache problem or what? Pin
niranjanR30-Oct-09 21:10
niranjanR30-Oct-09 21:10 
GeneralRe: is this a cache problem or what? Pin
Christian Graus31-Oct-09 0:51
protectorChristian Graus31-Oct-09 0:51 
AnswerRe: is this a cache problem or what? Pin
Richard MacCutchan31-Oct-09 0:30
mveRichard MacCutchan31-Oct-09 0:30 
AnswerRe: is this a cache problem or what? Pin
Nish Nishant31-Oct-09 5:14
sitebuilderNish Nishant31-Oct-09 5:14 
AnswerRe: is this a cache problem or what? Pin
Shog931-Oct-09 5:26
sitebuilderShog931-Oct-09 5:26 
Questionproblem with stored procedure Pin
RongNK30-Oct-09 17:05
RongNK30-Oct-09 17:05 
AnswerRe: problem with stored procedure Pin
Christian Graus30-Oct-09 17:09
protectorChristian Graus30-Oct-09 17:09 
GeneralRe: problem with stored procedure Pin
RongNK30-Oct-09 17:23
RongNK30-Oct-09 17:23 
GeneralRe: problem with stored procedure Pin
Christian Graus30-Oct-09 17:36
protectorChristian Graus30-Oct-09 17:36 
GeneralRe: problem with stored procedure Pin
RongNK30-Oct-09 17:47
RongNK30-Oct-09 17:47 
GeneralRe: problem with stored procedure Pin
lrsoft200930-Oct-09 18:19
lrsoft200930-Oct-09 18:19 
GeneralRe: problem with stored procedure Pin
Christian Graus30-Oct-09 19:15
protectorChristian Graus30-Oct-09 19:15 

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.