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
Post a Comment