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
Post a Comment