Simultaneously Write And Read A File From Ndk In Android
I am writing into a file using android-ndk . So writing in file is taking place using native c code. It contains some kind of readings that i am putting in using ndk. On click of a
Solution 1:
This should be possible using pthreads. So you need to spawn 2 threads, one doing the writing and other doing the reading. If you are doing it from the same file, you may run into race conditions, so be careful.
More more info on pthreads, kindly google. It's commonly used by the Linux world.
Post a Comment for "Simultaneously Write And Read A File From Ndk In Android"