A Generalized Streaming Model for Concurrent Computing