I have recently pondered on the general approach to multi-threaded code that would be most efficient. As with concurrent collections atomic mechanisms such as Compare-And-Swap are used to provide efficient implementation of collections such as queues. I was wondering whether there are any new approaches to writing multi-threaded code, for instance in java, rather than using pure Thread instances? Are thread pools used more often perhaps?
There are few new approaches emerging:
message passing and actor-model, see akka (well, the idea comes from erlang...)
gpu - massive multithreading with thousands of simple micro-threads
transactional memory (see: clojure)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With