I'm not sure if this is a producer/consumer problem but I couldn't find a better way to phrase my question.
I'm wondering if this problem (or a similar one) has already been solved. If it hasn't, is it an NP problem? Here is the description of the problem and the question I'm trying to answer
- Assume you have 4 producers and 2 consumers.
- Assume you already know everything the producers are going to produce (as a list of items, each items being of a different size)
- Assume each consumer can consume any data at different speeds (e.g consumer1 will consume any item twice as fast as consumer2)
QUESTION: If I control the scheduler (meaning which consumer gets what item), How do I find out what assignment of the items will make the consumers finish the fastest (consuming all the items).
I hope that makes sense. I spent a couple of hours thinking about this and then a couple of more hours looking for possible solutions but still no luck. Hoping I can get some brainstorming/solutions from everyone. Thanks in advance!