KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am applying my new found knowledge of threading everywhere and getting lots of surprises Example: I used threads to add numbers in an array. And outcome was different every time. The problem was that all of my threads were updating the same variable and were not synchronized. What are some known thread issues? What care should be taken while using threads? What are good multithreading resources. Please provide examples. sidenote: (I renamed my program thread_add.java to thread_random_number_generator.java :-)
Tags (comma-separated)
Save Edits
Cancel