492 pages.Temps de lecture estimé 6h09min. Multicore microprocessors are now at the heart of nearly all desktop and laptop computers. While these chips offer exciting opportunities for the creation of newer and faster applications, they also challenge students and educators. How can the new generation of computer scientists growing up with multicore chips learn to program applications that exploit this latent processing power? This unique book is an attempt to introduce concurrent programming to first-year computer science students, much earlier than most competing products.This book assumes no programming background but offers a broad coverage of Java. It includes over 150 numbered and numerous inline examples as well as more than 300 exercises categorized as "conceptual," "programming," and "experiments." The problem-oriented approach presents a problem, explains supporting concepts, outlines necessary syntax, and finally provides its solution. All programs in the book are available for download and experimentation. A substantial index of at least 5000 entries makes it easy for readers to locate relevant information.In a fast-changing field, this book is continually updated and refined. The 2014 version is the seventh "draft edition" of this volume, and features numerous revisions based on student feedback.A list of errata for this version can be found on the Purdue University Department of Computer Science website.Contents
Contents
Preface
Acknowledgements
1 Computer Basics 1
2 Problem Solving and Programming
3 Primitive Types and Strings
4 Selection
5 Repetition
6 Arrays
7 Simple Graphical User Interfaces
8 Methods
9 Classes
10 Interfaces
11 Inheritance
12 Exceptions
13 Concurrent Programming
14 Synchronization
15 Constructing Graphical User Interfaces
16 Testing and Debugging
17 Polymorphism
18 Dynamic Data Structures
19 Recursion
20 File I/O
21 Network Communication
Index