I am planing to learn and write some functions using multi-threading technique in C++.
Is there any conditions for a function to be converted from single thread to multi-thread one?
For example, can I convert all functions (cin, cout,...) to multi-thread ones?