Chapter 7. Complexities

  • Complex Locking Primitives

  • Timeouts

  • Other Synchronization Variables

  • Volatile

  • Performance

  • Synchronization Problems

  • APIs Used in this Chapter

  • The Class Extensions.RWLock

  • The Class Extensions.Barrier

  • The Class Extensions.SingleBarrier

In which a series of more complex synchronization variables and options are presented and the trade-off between them and the simpler ones are discussed. Synchronization problems and techniques for dealing with them conclude the chapter.

Complex Locking Primitives

There are times when a simple mutex does not provide enough functionality. There are situations in which you can improve your program's efficiency or fairness by implementing more complex locking primitives. Keep in mind that the locks described ...

Get Multithreaded Programming with JAVA™ Technology 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.