Can anyone post a solution for this problem ?
Given the following API declarations, write the data structures and code to allow producers and consumers to exchange messages on different topics in a multi-threaded program
//Sends a message to a consumer on a topic
void send(String topic, String message)
// Receives a message from a producer on a topic.
//Returns empty string if there are no messages available
String receive(String topic)