Question no 1: Three threads work together to transform a list of data. Thread producer generates a list of integer values and sends them to thread filter that removes all multiples of 10 and passes all other values to thread consumer that sorts them and displays them on the screen. Each of these threads perform their tasks at different speeds. The producer generates a value every 100 milliseconds, the filter processes a value every 500 milliseconds and the consumer continuously reads values. Using the BoundedBuffer class outlined in the lectures and listed in your book write a solution to this problem.
Question No 2: A platform has space for at most 100 people at any one time. People are only admitted when the platform is open and the number of persons does not exceed the prescribed limit. Using condition variables write a class that could be used to control access to the platform.
Hi,
I am working on Java since last 6 years and I know this concept. Your task is related to Operating system semaphore concept.
I can deliver the task within 2 to 3 days.
For more details you can call me on +91 9975783977
Thank You!