Your requirement seems somewhat confusing and changing. One comment says that "streams are written to one file," and the other "all are written to the same set of files at the same time."
:
1) . , , .
2) / - , (1), , contentin . / .
2) / . , , , - , , . , , . , .
3) (2), . (2), . (2), .
4) threadpool. , - , , , - . (2), .
5) , ?