Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Simply the title is the question. If synchronized keyword available, any reference would be appreciated.

share|improve this question
add comment

1 Answer 1

Apex is not a multi-threaded language, so there's no reason to have a concept of synchronized methods. While multiple threads of apex can be run at the same time they do not share context (static variables, object references, anything really).

share|improve this answer
2  
The only thing that could be synchronized is your data. And you can use FOR UPDATE keyword in your SOQL query to lock specific set of records. salesforce.com/us/developer/docs/apexcode/Content/… –  Vasily Liaskovsky May 2 at 6:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.