יצא לך להגדיר אובייקטים או פקדים שהם VOLATILE ?רשום את הדבר הבא :
The volatile keyword indicates that a field might be modified by multiple concurrently executing threads. Fields that are declared volatile are not subject to compiler optimizations that assume access by a single thread. This ensures that the most up-to-date value is present in the field at all times.
שזה עושה את העבודה שביקשתי... השאלה היא האם זה "נכון" תיכנותית להשתמש בזה מבחינת אופטימיזציה וכו...