Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
This laboratory exercise assumes that you have background in Java Programming Language. For resources on that you may visit https://www.oracle.com/java/index.html
Directions: Create a multithreaded program by using Runnable interface and then create, initialize and start four Thread objects from your class. The threads will execute concurrently and display the following String array elements.
String course [ ] = {“MIT411”, “Advanced”, “Operating”, “Systems”};
The first thread displays the first element of the string array. (MIT 411)
The second thread displays the second element of the string array. (Advanced)
The third thread displays the third element of the string array. (Operating)
The fourth thread displays the fourth element of the string array. (Systems)
When executed, the program will run the threads at least 3 times before exiting.
What to submit:

1. Program codes screen captured from your IDE (BlueJ, Netbeans, etc) and pasted in this file.
2. Output Screen Captures – at least 3 runs of your program. (Note: Output could vary)

What I have tried:

I tried to do the instructions and create a program but I really just do not know how t code in JAVA.

Please help.

-Thanks
Posted
Updated 25-Sep-17 23:45pm

Quote:
I really just do not know how t code in JAVA.

Then you are going to have to learn, or you will fail your course.

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Go back to your course notes, read your course book, and you had better get started quickly - it's probably due in pretty soon!
Try it yourself, you may find it is not as difficult as you think.

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900