Posts by Bang • 61 points
1 post
-
6
votes1
answer56
viewsQ: Is it possible to access a shared variable with another thread without a competition problem?
I have that code List<Object> myList = new ArrayList<>(); public void RunOperation(){ myThread = new Thread() { @Override public void run() { for (int i = 0; i < ReallyHighNumber;…