What is Thread synchronization ?

Java related questions and answers
deepak singh
Posts: 686
Joined: Fri Sep 30, 2016 4:19 pm

What is Thread synchronization ?

Postby deepak singh » Thu Oct 06, 2016 4:25 pm

What is Thread synchronization ?

rameshkhd
Posts: 1279
Joined: Sun Aug 28, 2016 10:45 am

Re: What is Thread synchronization ?

Postby rameshkhd » Thu Oct 06, 2016 4:26 pm

Ans). When a thread is already acting on an object, preventing any other thread from acting on the
same object is called ‘Thread synchronization’ or ‘Thread safe’ The object on which the threads are
synchronized is called ‘synchronized object’. Thread synchronization is recommended when multiple
threads are used on the same object(in multithreading).


Return to “Java”

Who is online

Users browsing this forum: No registered users and 1 guest