Cod: JVA-071
Durata: 12 ore
Durata: 12 ore
Descriere
In acest training vei invata cum sa folosesti java.util.concurrent package. Vom analiza fiecare clasa in parte si iti vom arata cum sa le folosesti. Vein invata sa utilizezi synchronized collections, executors, atomics si multe altele.Acest curs face parte dintr-o serie de 3 dedicate multithreading. Celelalte doua trining-uri abordeaza Multithreading (threads, synchronization, monitors etc.) si asynchronous programming and ForkJoin Framework.
Subiecte curs
Valori Volatile si Atomic- Memory access performance
- CPU memory model
- Compiler si CPU
- Java memory model
- volatile keyword
- CAS algorithm
- Atomic References
- Atomic counter - exemplu
Collections
- Lost insert (update) problem
- Synchronized collections
- Concurrent library
- Concurrent collections
- Queue si Deque
- BlockingQueue
Lock si semaphore
- Lock interface
- Condition in locks
- ReadWriteLock
- Semaphore interface
Synchronizers
- Introducere – unde plasam semaphore si synchronizer
- CountDownLatch
- TransportTyconTutor – exemple de cum folosim synchronizers si semaphores
- CyclicBarrier
- Phaser
- Phaser phases si tutor
Executor Framework
- De ce avem nevoie de ExecutorFramework
- Executor si ExecutorService
- ThreadPool
- Scheduling tasks
- Running tasks
- Stoping tasks
- Future interface
Stocarea datelor in Threads
- Sharing runnable objects between threads
- Overriding values in objects
- ThreadLocal Store
Exception handling
- Exceptions in multithreading application
- Handling Exception cuUncatchingExceptinoHandler
Obiective
- Imbunatatirea abilitatilor de programare cu Java
Public tinta
- Programatori java incepatori si nivel mediu