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

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -