The Right option is All of the mentioned.
Synchronization is the method by which this is accomplished when two or more threads need to access the same shared resource. Synchronization is the mechanism by which this is achieved when two or more threads need to access the same shared resource.
When two or more threads are running simultaneously and sharing important resources, then to prevent crucial resource consumption disputes, threads should be synchronized. Otherwise, conflicts could occur if many parallel-running threads try to change the same variable at the same time.
To know more about Thread synchronization, refer to-
https://brainly.com/question/27853487
#SPJ4