Question: Write a java application withtwothreads named Thread-1 and Thread-2. The Thread-1reads the file sampleFile.txt contentand notifies Thread-2whenever it reads an even number. Thread-2writes user input
Write a java application withtwothreads named Thread-1 and Thread-2. The Thread-1reads the file sampleFile.txt contentand notifies Thread-2whenever it reads an even number. Thread-2writes user input into the same file and notifies Thread-1to continuethe process. This process will continue until user enters keyword stop while giving the input in the Thread-2.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
