Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 23. Java Threads > Synchronization

Synchronization

You've seen threads that run independently from each other. In real life, however, there are often situations whereby multiple threads need access to the same resource or data. Thread interference problems might arise if you cannot guarantee that no two threads will simultaneously have access to the same object.

This section explains the topic of thread interference and the language built-in locking mechanism for securing exclusive access to an object through the synchronized modifier.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint