Here you can read a brief review of some concurrency tips by Carol McDonald
- Prefer immutable objects/data
- Hold Locks for as short a time as possible
- Prefer executors and tasks to threads
- Prefer Concurrency utilities to wait and notify
- Producer Consumer Pattern
- Synchronizers
- Multithreaded Lazy Initialization is tricky...
- ...Prefer Normal initialization
No hay comentarios:
Publicar un comentario