Summary

This chapter illustrates that the Java programmer has nothing to fear from the threading and synchronization support in .NET. Most of the constructs and approaches available in Java have at least one analog in .NET.

We end the chapter with a note of caution. When Java was first released, all of the calls in the java.lang.Thread class were available for use. Over the years, several have been deprecated because they were found to be unsafe. C# and the CLR are new products, and it’s possible that over time the same thing will happen. We think that this is less likely than with Java because the CLR threading model is so closely based on Windows.

Get C# for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.