tracker issue : CF-3041401

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 82790:(Watson Migration Closure)In java and other languages you can use the keyword synchronized on methods to add multi-threaded behavior and locking capabilities

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/

Reporter/Name(from Bugbase): Luis Majano / Luis Majano (Luis Majano)

Created: 04/30/2010

Components: Language

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 8

Problem:

In java and other languages you can use the keyword synchronized on methods to add multi-threaded behavior and locking capabilities.  This would be of great usage instead of always using cflock statements.  This could be a great handy way to provide synchronization on methods natively.
Method:

    *  First, it is not possible for two invocations of synchronized methods on the same object to interleave. When one thread is executing a synchronized method for an object, all other threads that invoke synchronized methods for the same object block (suspend execution) until the first thread is done with the object.    * Second, when a synchronized method exits, it automatically establishes a happens-before relationship with any subsequent invocation of a synchronized method for the same object. This guarantees that changes to the state of the object are visible to all threads. 
Result:

Ability to maybe have a new attribute for methods "synchronized" that can follow the ability to lock method execution

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041401

External Customer Info:
External Company:  
External Customer Name: Luis Majano
External Customer Email: 7A3D2E124563615A99201549
External Test Config: 04/30/2010

Attachments:

Comments: