Unit-4
1. What is a thread?
2. What is the difference between multiprocessing and multithreading?
3. What is to be done to implement multithreading in a program?
4. What java interface must be implemented by all threads?
5. How to start a thread?
6. What are the 2 methods by which we may stop threads?
7. Difference between Suspending and stopping a thread?
8. How do we set priorities for threads?
9. Describe in brief the complete lifecycle of a thread?
10. What is synchronization? When do we use it?
11. Give some real life situations that illustrate the use of multithreading?
12. What is a file? Why do we require files to store data?
13. What is a stream? How is the concept of Streams used in Java?
14. What are I/P & O/P Streams?
15. What is Stream class?
1. What is a thread?
2. What is the difference between multiprocessing and multithreading?
3. What is to be done to implement multithreading in a program?
4. What java interface must be implemented by all threads?
5. How to start a thread?
6. What are the 2 methods by which we may stop threads?
7. Difference between Suspending and stopping a thread?
8. How do we set priorities for threads?
9. Describe in brief the complete lifecycle of a thread?
10. What is synchronization? When do we use it?
11. Give some real life situations that illustrate the use of multithreading?
12. What is a file? Why do we require files to store data?
13. What is a stream? How is the concept of Streams used in Java?
14. What are I/P & O/P Streams?
15. What is Stream class?