java Programming Glossary: thread2
Not thread safe Object publishing http://stackoverflow.com/questions/1621435/not-thread-safe-object-publishing Yes but it can happen. What this means though is that Thread2 can now call into assertSanity before n has gotten the value..
unwanted output in multithreading http://stackoverflow.com/questions/17816047/unwanted-output-in-multithreading 5 main child Thread3 Thread Jain 5 main child Thread3 Main Thread2 Thread Jain 5 main Thread Rohan 5 main child Thread2 child Thread2.. Main Thread2 Thread Jain 5 main Thread Rohan 5 main child Thread2 child Thread2 Thread Rohan 5 main child Thread1 Thread Jain.. Thread Jain 5 main Thread Rohan 5 main child Thread2 child Thread2 Thread Rohan 5 main child Thread1 Thread Jain 5 main child Thread1..
Difference between synchronization of field reads and volatile http://stackoverflow.com/questions/3103204/difference-between-synchronization-of-field-reads-and-volatile update where the following happens Thread1 Calls add 100 Thread2 Calls add 200 Thread1 Read balance 0 Thread2 Read balance 0.. Calls add 100 Thread2 Calls add 200 Thread1 Read balance 0 Thread2 Read balance 0 Thread1 Compute new balance 0 100 100 Thread2.. Read balance 0 Thread1 Compute new balance 0 100 100 Thread2 Compute new balance 0 200 200 Thread1 Write balance 100 Thread2..
|