optimization - Process vs Threads -


how decide whether use threads or create separate process altogether in application achieve parallelism.

threads more light weight, , making several "workers" utilize availabe cpus or cores, you're better of threads.

when need workers better isolated , more robust, servers, go sockets. when 1 thread crashes badly, takes down entire process, including other threads working in process. if process turns sour , dies, doesn't touch other process, can happily go on bussiness if nothing happened.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -