Skip navigation

Synchronized methods

Synchronized methods: Learning Java Threads
Synchronized methods: Learning Java Threads

A synchronized method includes the synchronized keyword in its header and this is a way to help solve the problem of two threads simultaneously accessing the same critical section of code. For example, you can use this keyword to synchronize the former getID() method and overcome its read-modify-write race condition

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 9m
Show More Show Less
Skills covered in this course
Development Tools Developer Programming Languages Java

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month