When SerializeCallback is false, do file operations for a file go into one thread?

All file operations for one file go into one thread (i.e., are serialized), but this thread is not always the same. The thread is picked from the worker thread pool and you should not make any assumptions regarding which thread this is. One thing you can be sure of is that if the application called SetSize and then Write, your code will first get the SetSize callback, and only after completion of the SetSize callback will your Write callback be called. But the Write callback can be called in the context of different threads from the one used for the SetSize callback.

Ready to get started?

Learn more about Callback Technologies or download a free trial.

Download Now