Question: Write a Java Code where three people conversation with each other in a synchronized way. This is an Inter-thread communication code. (Multithread in Java). The

 Write a Java Code where three people conversation with each other

Write a Java Code where three people conversation with each other in a synchronized way. This is an Inter-thread communication code. (Multithread in Java). The User should be able to input. If any of them type STOP, then he is paused & the rest of the two-person continue. Output Sample: A: Hi B how are you? B: Hi I'm fine. How are you c? C: I'm good too A: So how's today's weather B? B: Fine. I like it. C: STOP (paused) A: Let us take a walk BCA & B continue speaking) B: Okay A. A: let's go

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!