Optimal Resource Sharing Strategies for a Streaming System