Main Site Documentation

Can two threads access two different files on a SD card simultaneously?


One thread in our application will be reading a file. Another thread will be writing a different file. Both files will be open simultaneously (well, I hope).

Apparently, the FIleStream class is not thread safe. Two threads reading and writing the same file would need some additional locking for mutual exclusion.

Can two different files be in use simultaneously on the SD Card? Are there limits about the number of files that be can open at the same time?

Thanks for the help,


Thanks for taking the time to answer my query!