Wipro TalentNext PBL
Topics Covered: Thread Control And Priorites
No. Hands-on Assignment Topics Covered Status
1
Create a thread which prints 1 to 10. After printing 5, there should be a delay of 5000 milliseconds before printing 6
Thread Control Mechanism
2
Create two threads, one thread to display all even numbers between 1 & 20, another to display odd numbers between 1 & 20. Note: Display all even numbers followed by odd numbers Hint: use join
Use of join method and thread control mechanism
3
Create three threads- with different priorities – MAX, MIN, NORM- and start the threads at the same time. Observe the completion of the threads.
Thread Priorities