io - process A read a file which process B write to -


there 2 process share file f,the size of each io line less 4k

  • a: read line f
  • b: write line f (append mode)

i want konw if case below happen?

b write half of line ,then read a,and found eof of f readed ,and return half of line.

at time, file can used single process only. if want shared between 2 processes, have synchronize them. also, have close file before used second process.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -