1.How to understand asynchronous io in Windows??
2.If I write/read something to the file using asynchronous io :
WriteFile(); ReadFile(); WriteFile();
How many threads does the OS generate to accomplish these task?
Do the 3 task run simultaneously and in multi-threading way or run one after another just with different order?
3.Can I use multithreading and in each thread using a asynchronous io to read or write the same file?
To your questions:
Depends if you are using the windows pools, iocp, etc. Generally you decide.
This depends on your architecture. On a single-cored machine, the 3 tasks would run one after another and the order would be os decided. On a multi-cored machine these might run together, depending on how the OS scheduled the threads.
That is out of my knowledge so someone else would need to answer that one.
I suggest getting a copy of Windows via C/C++ as that has a very large chapter on Asynchronous IO.