If in a sequential function, network operation, has the I/O operations, or open and printers, etc., there has been no contact these tasks on the logic, but to write in a function, in the build after operation, the single operation process can be divided into three, concurrent execution?
CodePudding user response:
Look, your these operations are involved in IO, all IO operations generally provide both synchronous and asynchronous invocation mode,
Asynchronous mode is thought to be multi-threaded concurrent, there may be problems on the execution order, Synchronously is sequentially, in a complete, will perform the next,
CodePudding user response:
Must tell you, not.
Hope that when the compiler can reach this level, we are no longer care about multithreading.