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

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -