Parallel Structuring of Programs Containing I/O Statements