Question: Write a program that has 4 threads and prints the letters of the alphabet in their correct order. So for e.g, thread 1 wil print
Write a program that has 4 threads and prints the letters of the alphabet in their correct order. So for e.g, thread 1 wil print A, thread 2 will then print B, thread 3 then prints C, and finally thread 4 will print a D. At this point, thread 1 is activated and it prints an E etc. Keep going around in a loop like that until you run out of letters. Then exit gracefully.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
