What happens if two processes call File.read(path) at the same time for the same path in Ruby? -


if have 2 child processes in ruby, , each calls `file.read()' @ same time (on same file), happen?

what want happens both processes read contents of file...

read safe operation. can have many concurrent readers.

not writes, naturally.

so yeah, expect happen.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -