Threading speed

  • Thread starter Thread starter Stefan
  • Start date Start date
S

Stefan

Hi.

Is really threading in .net so slow. I'm a mfc programmer that have stared
to write code in managed c++. I have compared thread loops in mfc with .net,
and .net loops seems to be extremely slow. I just increment a value, and
while mfc is upp at 1300000incs, .net loop has reached 4054. Am I missing
something here or is this the fakt...

Steffo
 
Stefan wrote:
Is really threading in .net so slow. I'm a mfc programmer that have stared
to write code in managed c++. I have compared thread loops in mfc with .net,
and .net loops seems to be extremely slow. I just increment a value, and
while mfc is upp at 1300000incs, .net loop has reached 4054. Am I missing
something here or is this the fakt...
<snip>

You need to post your code, there could be a million things wrong with
your example that skews the results.
 
Is really threading in .net so slow. I'm a mfc programmer that have stared
to write code in managed c++. I have compared thread loops in mfc with .net,
and .net loops seems to be extremely slow. I just increment a value, and
while mfc is upp at 1300000incs, .net loop has reached 4054. Am I missing
something here or is this the fakt...

I suspect your benchmarking methodology is flawed. Without seeing the
code, it's impossible to tell, of course.
 
Back
Top