What about interthread communication and how it takes place in java?



What about interthread communication and how it takes place in java?..

Answer / Rakesh Kumar Rajak

Interthread communication is important for coordinating activities between threads in Java. This can be achieved using various mechanisms such as wait(), notify(), and notifyAll() methods, which are part of the Object class and operate on an object's monitor; synchronized blocks, which allow only one thread to execute a critical section of code at a time; and atomic variables, which provide a way to manipulate variables in a thread-safe manner without synchronization.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

how to handle http request in struts

2 Answers   Polaris,


Hi ,i convert contrller as jSp And presentation as servlet ...will it do? if so what are advantage and idsadvantages

2 Answers   IBM,


Why do we use regex?

1 Answers  


What are 5 boolean operators?

1 Answers  


What is constructor chaining and how is it achieved in java?

1 Answers  


What is the main method java?

1 Answers  


What does a method signature consist of?

1 Answers  


what is the purpose of method overriding in java where v r completely re-defining a inherited method instead y can't v create a new method and define.If the question is very silly plz excuse me and do reply.Thank U!

7 Answers   emc2, Kumaran Systems,


what do you mean by stream pipelining in java 8? Explain

1 Answers  


What is the use of default method in interface in java?

1 Answers  


What do you mean by inner class in java?

1 Answers  


Can we convert integer to string in java?

1 Answers  


Categories