Java Multi-Threading Programming: MULTITHREADING & CONCURRENT, FILE IO & NETWORKING

Neos Thanh
Ebook
108
Pages
Ratings and reviews aren’t verified  Learn More

About this ebook

This book brings for you all of knowledge you need to start multi-thread, FILE IO programming from basic to advance by JAVA language.

Just by 19 LESSONS, you can analysis easily a game include:

- Creating a new Thread

- Thread Scheduling and Priority

- Multithreading issues in Swing Applications

- Thread Pool, Executor, Callable/Future

- Avoid deadLock and how to make data synchronization

- File and Directory

- File I/O Basic to Advance


There are many examples & case studies for the practice of programming. Let's enjoy it!

-----------------------------------------------------------------------

A LITTLE IN THE BOOK

MULTITHREADING & CONCURRENT

1. Introduction

1.1 Multitasking (or Multi-processing)

1.2 Multithreading (within a Process)

2. The Infamous "Unresponsive User Interface"

2.1 Example 1: Unresponsive UI

2.2 Example 2: Still Unresponsive UI with Thread

2.3 Example 3: Responsive UI with Thread

2.4 Example 4: SwingWorker

3. Creating a new Thread

3.1 Interface Runnable

3.2 Class Thread

3.3 Creating a new Thread by sub-classing Thread and overriding run()

3.4 Creating a new Thread by implementing the Runnable Interface

3.5 Methods in the Thread Class

3.6 Daemon threads

3.7 The Life Cycle of a Thread

4. Thread Scheduling and Priority

5. Monitor Lock & Synchronization

......

FILE IO & NETWORKING IN JAVA

1. File and Directory

1.1 Class java.io.File (Pre-JDK 7)

2. Stream I/O in Standard I/O (java.io Package)

3. Byte-Based I/O & Byte Streams

3.1 Reading from an InputStream

3.2 Writing to an OutputStream

3.3 Opening & Closing I/O Streams

3.4 Flushing the OutputStream

3.5 Implementations of abstract InputStream/OutputStream

3.6 Layered (or Chained) I/O Streams

3.7 File I/O Byte-Streams - FileInputStream & FileOutputStream

3.8 Buffered I/O Byte-Streams - BufferedInputStream & BufferedOutputStream

3.9 Formatted Data-Streams: DataInputStream & DataOutputStream

3.10 Network I/O 59

4. Character-Based I/O & Character Streams

4.1 Abstract superclass Reader and Writer

4.2 File I/O Character-Streams - FileReader & FileWriter

........

12. Networking Fundamentals

12.1 Latency & Bandwidth

12.2 ISO/OSI 7-layer Networking Model

12.3 OSI Model vs. TCP/IP

12.4 TCP

12.5 UDP

12.6 Socket (or Port)

12.7 Java Networking (java.net)

12.8 TCP & ServerSocket/Socket

About the author

Life is to fight!

Football, Programming, Mobile App, Language

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.