Erlang C port - serial or parallel execution? -


erlang ports , thread safety

"with ports, however, "controlling process" acts serialization (as in arranged in series) layer, meaning requests handled 1 after other , not @ once. moreover, believe (but not know certain) communication protocol ports use requires serial execution."

if launch large number of erlang port processes, each connected same c driver, know whether c code executed in series or parallel parallel erlang processes ? (i suspect in series)

thx

erlang describes program communication through ports, , not code execution. while have 1 point of serialization , communication goes through 1 actor, doesn't mean cannot distribute work in general. can parallel c program wish single port.

the port implemented pipe, why requires serial communication. free open lot communication pipes of them working independent each other.

it means different ports independent , communication through independent ports parallel

hovewer, beam has limited power of thread pool in code runs. every communication event port use thread time of data transmission. if have lot of ports , send lot of data, time may become significant, ports start influencing each other. in case may need increase amount of async threads, wich used io , port communication


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -