Question: Please Solve in JAVA as soon as possible Note: There are Six questions, answer ALL of them. Mark of each question are mentioned at the
Please Solve in JAVA as soon as possible

Note: There are Six questions, answer ALL of them. Mark of each question are mentioned at the right margin. 1. Suppose you are an IT specialist of a Bank software system. You have to design a [CO3,C3, transaction system so that no conflicts can occur during the transaction time. You have Mark: 7] to design a class Instruction Counter which has a function printInstruction(int n) that can take a parameter n and print the prime number from 1 to nth term. Again, create two thread class (ThreadOne, ThreadTwo) so that both of the thread can call the method printInstruction(int n) of the Instruction Counter class. Again, write a main java class named MultiProcessingDemo with a main method that instantiate four objects of two threads(ThreadOne, ThreadTwo). Two threads from ThreadOne and two threads from ThreadTwo class. Your task is to process and run four threads simultaneously in the main method by considering the fact that when one thread printing with the printInstruction(n) function the other threads must be wait for the completion of the print of the starting thread. Design a JAVA application that can perform the task as given in the above scenario
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
