1.

Why A Client Should Be Multithreading? Explain.

Answer»

In many types of client applications, support for multiple threads is ALSO useful. A Web browser, for example, is a multithreaded application. Within a browser, you can have multiple windows open and perform multiple downloads at the same time. To perform each download operation, the browser simply starts a NEW thread which preforms the CORRESPONDING processing.
When your program writes information to or receives information from a stream, a program that uses a single thread of control must wait for the I/O operation to complete—a process CALLED I/O blocking. If you use multiple threads to perform the stream read and write operations, your application can continue to perform other operations. When you write client applications, take advantage of Java's multithreading to make your programs interface more user-friendly and more RESPONSIVE.

In many types of client applications, support for multiple threads is also useful. A Web browser, for example, is a multithreaded application. Within a browser, you can have multiple windows open and perform multiple downloads at the same time. To perform each download operation, the browser simply starts a new thread which preforms the corresponding processing.
When your program writes information to or receives information from a stream, a program that uses a single thread of control must wait for the I/O operation to complete—a process called I/O blocking. If you use multiple threads to perform the stream read and write operations, your application can continue to perform other operations. When you write client applications, take advantage of Java's multithreading to make your programs interface more user-friendly and more responsive.



Discussion

No Comment Found