CS506 Assignment 1 Solution Spring 2021
employee.txt1110, ALI, CS, MS, 5, 70000 1120, Abdullah, MGT, PhD, 10, 125000 1022, Ilyas, Bio, Master, 7, 50000 1022, Ahmad, MassCom, MS, 3, 60000
In general, a typical Java program is dealt with the following kinds of thread:
Main Thread; initial application code is executed.
Worker Thread; time-consuming and background tasks are executed.
Well, Java based smart devices (embedding Java code in smart devices) have revolutionaries the human life. At one side, these devices provide ease of use of technology. But on the other side, their unresponsiveness or delay in response to user’s actions may result in human frustration. One of the main reasons is, these devices mostly run on a single Main Thread.
Being a Java developer what do you think, “Use of Worker Threads along with Main Thread will reduce the response delay or increase the work load in Java based Smart Devices?”