Does Erlang VM write a large file block?

Is all Erlang VM locked (these are not other Erlang processes) when I write a large file in a separate process?

+3
source share
1 answer

Erlang VM manages an internal (OS-level) thread pool for I / O. Interaction with files will not block the emulator.

In general, access to files is through IoDevice, which is the process of exchanging data with codes for input / output. If you work a lot with files, this may slow down. file:open/2provides a mode rawfor quick, direct read / write of files.

+7
source

Source: https://habr.com/ru/post/1731376/


All Articles