3

I come from a Java background. I am wanting to learn more about concurrency in .Net and C#. Is there something similar to Java's concurrent utils package?

uriDium
  • 13,110
  • 20
  • 78
  • 138

3 Answers3

6

The closest will be the new threading abilities in .NET 4.0, also known as Parallel Extensions.

The existing capabilities of .NET (i.e. in 3.5 and earlier) are better than Java without java.util.concurrent, but it certainly doesn't cover everything which is in java.util.concurrent.

The Parallel Extensions Team Blog is well worth reading to learn more.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
  • Thank you. This might be what I am looking for. I would like to learn to write really high performance concurrent code in C#. I would know how in Java but would like to port that knowledge to .Net. Just because I feel that the Java language (as much as I like it) is getting left behind. – uriDium Nov 30 '09 at 15:27
  • Parallel Extensions is definitely what you want to be looking at then. You might also want to investigate the CCR for a bit of fun: http://msdn.microsoft.com/en-us/magazine/cc163556.aspx – Jon Skeet Nov 30 '09 at 15:32
  • Perfect thanks. I am sure this and maybe a book or two is what I need. – uriDium Nov 30 '09 at 15:42
1

Most of the stuff you will be interested in is probably in the System.Threading namespace.

.NET 4.0 has some very interesting extensions called ParallelFX that looks really promising as well.

Goyuix
  • 23,614
  • 14
  • 84
  • 128
0

namespace: System.Collections.Concurrent It has thread-safe blocking type collections. Some of them are,

Rajesh
  • 1,911
  • 1
  • 22
  • 19