Microsoft .NET 4.0 Threading Enhancements PRO

I have recently updated the ‘C# Fundamentals’ course available for free personal and academic usage at www.abelski.com adding slides about the new multithreading capabilities added in .NET 4.0. The following video clips present those new capabilities.

Parallelism can be achieved on multi core machines only. Multithreading can be achieved on single core machine as well. The Parallel new class (added in .NET 4.0) allows us to benefit parallelism. The following video clips shows how to do it.

The Task class represents the work we want to complete. Its methods allow us to create, schedule and synchronize tasks in our code. The following video clips show how to use this class.

The Barrier class can assist us when we have a set of two (or more) threads that a pre defined number of them first need to complete or reach a specific point in their execution before a specific other thread can continue its execution. The following clip shows and explains how to use it.

The CountDownEvent class allows us having a coundown counter that holds a specific thread in a wait state till it reaches 0. Different threads can access and decrease its value by calling the Signal() method. Each time the Signal() method is called the counter value is decreased by one.  The following video clips show and explains how to use this class.

Share:

The Visitor Design Pattern

The Visitor Design Pattern

The visitor design pattern allows us to add operations to objects that already exist without modifying their classes and without extending them.

What are Anti Patterns?

Anti Patterns

Unlike design patterns, anti patterns just seem to be a solution. However, they are not a solution and they cause additional costs.

Virtual Threads in Java Professional Seminar

Virtual Threads in Java

The use of virtual threads can assist us with improving the performance of our code. Learn how to use virtual threads effectively.

NoSQL Databases Courses, Seminars, Consulting, and Development

MongoDB Design Patterns Meetup

The use of MongoDB involves with various cases in which we can overcome performance issues by implementing specific design patterns.

image of woman and database

Record Classes in Java

Learn how to define record classes in Java, and when to use record classes in your code. Stay up to date with the new Java features.

Accessibility | Career | Conferences | Design Patterns | JavaScript | Meetups | PHP | Podcasts | Python | Self Learning

Teaching Methodologies | Fullstack | C++ | C# | CSS | Node.js | Angular | Java | Go | Android | Kotlin | Swift | Academy

Front End Development | Scala | Architectures | Cloud | Big Data | Internet of Things | Kids Learn Programming

The Beauty of Code

Coding is Art! Developing Code That Works is Simple. Develop Code with Style is a Challenge!

Skip to content Update cookies preferences