O'Reilly logo

Microsoft® Visual J#™ .NET (Core Reference) by John/Longshaw, Andy Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interthread Communication

We’ve examined some basic synchronization techniques, but they are not appropriate for every situation when you’re handling multiple threads. Let’s look at some additional techniques you can use for implementing more advanced cooperation and communication between threads.

Thread Notification

You’ve learned how to use the Monitor class to perform exclusive locking using a sync object. But consider a common scenario from the world of computer science: that of producers and consumers.

A producer is an object that creates resources. A consumer is an object that obtains resources from a producer. A simple producer might implement an iterative process, creating one resource after another. A consumer will wait until a resource ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required