multithreading - Nodejs to utilize all cores on all CPUs -
i'm going create multithreaded application highly utilize cores on cpus doing intensive io (web browsing) , intensive cpu (analyzis of crawled streams). nodejs (since it's single threaded , don't wanna run couple of nodejs instances [one per single core] , sync between them). or should consider other platform?
javascript v8 engine made work async tasks running on 1 core. however, doesn't mean can have multiple cores running same or perhaps, differente applications communicate between each other.
you have aware of multiple-cores problems might occur.
for example, if going share lots of information between threads, perhaps not best language you.
considering factor of multi-core language, have been introduced elixir, based on erlang (http://elixir-lang.org/).
it cool language, developed 100% thinking multi-thread applications. made make easy, , fast applications can scalonable many cores want/can.
back node, answer yes, support multi-thread, decide continue with. take @ answer, , might clarify mind: node.js on multi-core machines
Comments
Post a Comment