Skip to content

Comment on Multithreading or Light-weight processes ?

Comments

The decision depends on the interactions between them.

Threads make intercommunication cheap but at the price of exposing to problems like deadlocks or data access synchronization overhead.

My rule of thumb is to use process and move to threads only when there is a significant added value.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.