Use volatile variables to perform simple operations to ensure multiple threads see the updated values. For example perform simple assignment operations such as
boolean b; int c;
multithreaded code{
b = false;
c = 5;
}

Moderator: admin
Users browsing this forum: Bing [Bot] and 13 guests