What is threaded programming and when is it used?
Submitted by: AdministratorThreaded programming is normally used when a program is required to do more than one task at the same time. Threading is often used in applications with graphical user interfaces; a new thread may be created to do some processor-intensive work while the main thread keeps the interface responsive to human interaction.
The Java programming language has threaded programming facilities built in, so it is relatively easy to create threaded programs. However, multi-threaded programs introduce a degree of complexity that is not justified for most simple command line applications.
Submitted by: Administrator
The Java programming language has threaded programming facilities built in, so it is relatively easy to create threaded programs. However, multi-threaded programs introduce a degree of complexity that is not justified for most simple command line applications.
Submitted by: Administrator
Read Online Java Threads Job Interview Questions And Answers
Top Java Threads Questions
☺ | How would you implement a thread pool? |
☺ | What is a green thread? |
☺ | Why are wait(), notify() and notifyall() methods defined in the Object class? |
☺ | Why are there separate wait and sleep methods? |
☺ | What is a working thread? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |