File Name: Threads - Java Lab - Experiment 10th Solution
File Submitter: ilLuSion
File Submitted: 24 Apr 2017
File Category: PROGRAMS - CODING MATERIAL
TITLE: Threads
1) Write a program to implement the concept of threading by extending Thread Class and Runnable interface.
2) Write a program for generating 2 threads, one for printing even numbers and the other for printing odd numbers.
3) Write a program to launch 10 threads. Each thread increments a counter variable. Run the program with synchronization.
4) Write a Java program to create five threads with different priorities. Send two threads of the highest priority to sleep state. Check the aliveness of the threads and mark which thread is long lasting
Click here to download this file