Cargando…

Mastering concurrency programming with Java 8 : master the principles and techniques of multithreaded programming with the Java 8 concurrency API /

Master the principles and techniques of multithreaded programming with the Java 8 Concurrency API About This Book Implement concurrent applications using the Java 8 Concurrency API and its new components Improve the performance of your applications or process more data at the same time, taking advan...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Fernández González, Javier (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2016.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Texto completo

MARC

LEADER 00000cam a2200000Ii 4500
001 EBSCO_ocn945637534
003 OCoLC
005 20231017213018.0
006 m o d
007 cr cnu---unuuu
008 160328s2016 enka o 001 0 eng d
040 |a UMI  |b eng  |e rda  |e pn  |c UMI  |d TEFOD  |d IDEBK  |d OCLCF  |d DEBSZ  |d KSU  |d COO  |d DEBBG  |d YDXCP  |d OCLCQ  |d UOK  |d CEF  |d OCLCQ  |d N$T  |d AGLDB  |d IGB  |d AUW  |d BTN  |d INTCL  |d MHW  |d SNK  |d UKAHL  |d RDF  |d QGK  |d OCLCO  |d OCLCQ  |d OCLCO 
019 |a 942842480  |a 944156590  |a 1259104732 
020 |a 9781785885464  |q (electronic bk.) 
020 |a 1785885464  |q (electronic bk.) 
020 |z 9781785886126 
020 |z 1785886126 
029 1 |a DEBBG  |b BV043969042 
029 1 |a DEBSZ  |b 473885816 
029 1 |a DEBSZ  |b 485795558 
029 1 |a GBVCP  |b 88284900X 
035 |a (OCoLC)945637534  |z (OCoLC)942842480  |z (OCoLC)944156590  |z (OCoLC)1259104732 
050 4 |a QA76.73.J38 
072 7 |a COM  |x 051280  |2 bisacsh 
082 0 4 |a 005.133  |2 23 
049 |a UAMI 
100 1 |a Fernández González, Javier,  |e author. 
245 1 0 |a Mastering concurrency programming with Java 8 :  |b master the principles and techniques of multithreaded programming with the Java 8 concurrency API /  |c Javier Fernández González. 
264 1 |a Birmingham, UK :  |b Packt Publishing,  |c 2016. 
300 |a 1 online resource (1 volume) :  |b illustrations. 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
347 |a text file 
490 1 |a Community experience distilled 
588 0 |a Online resource; title from cover page (Safari, viewed March 24, 2016). 
500 |a Includes index. 
505 0 |a Cover ; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: The First Step -- Concurrency Design Principles ; Basic concurrency concepts; Concurrency versus parallelism; Synchronization; Immutable object; Atomic operations and variables; Shared memory versus message passing; Possible problems in concurrent applications; Data race; Deadlock; Livelock; Resource starvation; Priority inversion; A methodology to design concurrent algorithms; The starting point -- a sequential version of the algorithm; Step 1 -- analysis; Step 2 -- design 
505 8 |a Step 3 -- implementationStep 4 -- testing; Step 5 -- tuning; Conclusion; Java concurrency API; Basic concurrency classes; Synchronization mechanisms; Executors; The Fork/Join framework; Parallel streams; Concurrent data structures; Concurrency design patterns; Signaling; Rendezvous; Mutex; Multiplex; Barrier; Double-checked locking; Read-write lock; Thread pool; Thread local storage; The Java memory model; Tips and tricks to design concurrent algorithms; Identify the correct independent tasks; Implement concurrency at the highest possible level; Take scalability into account 
505 8 |a Use thread-safe APIsNever assume an execution order; Prefer local thread variables over static and shared when possible; Find the more easily parallelizable version of the algorithm; Using immutable objects when possible; Avoiding deadlocks by ordering the locks; Using atomic variables instead of synchronization; Holding locks for as short a time as possible; Taking precautions using lazy initialization; Avoiding the use of blocking operations inside a critical section; Summary; Chapter 2: Managing Lots of Threads -- Executors ; An introduction to executors; Basic characteristics of executors 
505 8 |a Basic components of the executor frameworkFirst example -- the k-nearest neighbors algorithm; K-nearest neighbors -- serial version; K-nearest neighbors -- a fine-grained concurrent version; K-nearest neighbors -- a coarse-grained concurrent version; Comparing the solutions; The second example -- concurrency in a client/server environment; Client/server -- serial version; The DAO part; The command part; The server part; Client/server -- parallel version; The server part; The command part; Extra components of the concurrent server; Comparing the two solutions; Other methods of interest; Summary 
505 8 |a Chapter 3: Getting the Maximum from Executors Advanced characteristics of executors; Cancellation of tasks; Scheduling the execution of tasks; Overriding the executor methods; Changing some initialization parameters; The first example -- an advanced server application; The ServerExecutor class; The statistics object; The rejected task controller; The executor tasks; The executor; The command classes; The ConcurrentCommand class; Concrete commands; The server part; The ConcurrentServer class; The RequestTask class; The client part; The second example -- executing periodic tasks 
520 |a Master the principles and techniques of multithreaded programming with the Java 8 Concurrency API About This Book Implement concurrent applications using the Java 8 Concurrency API and its new components Improve the performance of your applications or process more data at the same time, taking advantage of all of your resources. Construct real-world examples related to machine learning, data mining, image processing, and client/server environments Who This Book Is For If you are a competent Java developer with a good understanding of concurrency but have no knowledge of how to effectively implement concurrent programs or use streams to make processes more efficient, then this book is for you. What You Will Learn Design concurrent applications by converting a sequential algorithm into a concurrent one Discover how to avoid all the possible problems you can get in concurrent algorithms Use the Executor framework to manage concurrent tasks without creating threads Extend and modify Executors to adapt their behavior to your needs Solve problems using the divide and conquer technique and the Fork/Join framework Process massive data sets with parallel streams and Map/Reduce implementation Control data-race conditions using concurrent data structures and synchronization mechanisms Test and monitor concurrent applications In Detail Concurrency programming allows several large tasks to be divided into smaller sub-tasks, which are further processed as individual tasks that run in parallel. All the sub-tasks are combined together once the required results are achieved; they are then merged to get the final output. The whole process is very complex. This process goes from the design of concurrent algorithms to the testing phase where concurrent applications need extra attention. Java includes a comprehensive API with a lot of ready-to-use components to implement powerful concurrency applications in an easy way, but with a high flexibility to adapt these components to your needs. The book starts with a full description of design principles of concurrent applications and how to parallelize a sequential algorithm. We'll show you how to use all the components of the Java Concurrency API from basics to the most advanced techniques to implement them in powerful concurrency applications in Java. You will be using real-world examples of complex algorithms related to machine learning, data mining, natural language processing, image processing in client / server en... 
590 |a eBooks on EBSCOhost  |b EBSCO eBook Subscription Academic Collection - Worldwide 
590 |a O'Reilly  |b O'Reilly Online Learning: Academic/Public Library Edition 
650 0 |a Java (Computer program language) 
650 0 |a Computer multitasking. 
650 0 |a Electronic data processing  |x Distributed processing. 
650 0 |a Parallel processing (Electronic computers) 
650 0 |a Application software  |x Development. 
650 6 |a Java (Langage de programmation) 
650 6 |a Fonctionnement multitâche. 
650 6 |a Traitement réparti. 
650 6 |a Parallélisme (Informatique) 
650 6 |a Logiciels d'application  |x Développement. 
650 7 |a COMPUTERS / Programming Languages / Java.  |2 bisacsh 
650 7 |a Application software  |x Development  |2 fast 
650 7 |a Computer multitasking  |2 fast 
650 7 |a Electronic data processing  |x Distributed processing  |2 fast 
650 7 |a Java (Computer program language)  |2 fast 
650 7 |a Parallel processing (Electronic computers)  |2 fast 
776 |z 1-78588-612-6 
830 0 |a Community experience distilled. 
856 4 0 |u https://ebsco.uam.elogim.com/login.aspx?direct=true&scope=site&db=nlebk&AN=1193720  |z Texto completo 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781785886126/?ar  |z Texto completo 
938 |a Askews and Holts Library Services  |b ASKH  |n BDZ0027122937 
938 |a ProQuest MyiLibrary Digital eBook Collection  |b IDEB  |n cis34109849 
938 |a YBP Library Services  |b YANK  |n 12872692 
938 |a EBSCOhost  |b EBSC  |n 1193720 
994 |a 92  |b IZTAP