Claims
- 1. An apparatus for resolving access to a common resource for competing processes, comprising:
a processor; and a memory, coupled to the processor, storing instructions adapted to be executed by the processor to
receive a request from a first process to access a resource, receive a request from a second process to access the resource, the request from the second process arriving after the request from the first process, grant access to the resource to the first process, queue the access request from the second process until the resource is released by the first process, and notify the second process that its access request has been queued, wherein upon receiving the notification, the second process resumes operation as if the second process had been granted access to and released the resource.
- 2. The apparatus of claim 1, wherein the request from the first process includes a request to validate a runtime object in an application development environment.
- 3. The apparatus of claim 2, wherein the requested validation includes accessing the resource to update a last source change time field of the runtime object.
- 4. The apparatus of claim 2, wherein the requested validation includes accessing the resource to update a boolean field of the runtime object indicating validity of the runtime object.
- 5. The apparatus of claim 1, wherein the request from the second process includes a request to invalidate a runtime object in an application development environment.
- 6. The apparatus of claim 5, wherein the requested invalidation includes accessing the resource to update a last source change time field of the runtime object.
- 7. The apparatus of claim 5, wherein the requested invalidation includes accessing the resource to update a boolean field of the runtime object indicating validity of the runtime object.
- 8. A computer-implemented method for resolving access to a common resource for competing processes, comprising:
receiving a request from a first process to access a resource; receiving a request from a second process to access the resource, the request from the second process arriving after the request from the first process; granting access to the resource to the first process; queueing the access request from the second process until the resource is released by the first process; and notifying the second process that its access request has been queued, wherein upon receiving the notification, the second process resumes operation as if the second process had been granted access to and released the resource.
- 9. The method of claim 8, wherein the request from the first process includes a request to validate a runtime object in an application development environment.
- 10. The method of claim 9, wherein the requested validation includes accessing the resource to update a last source change time field of the runtime object.
- 11. The method of claim 9, wherein the requested validation includes accessing the resource to update a boolean field of the runtime object indicating validity of the runtime object.
- 12. The method of claim 8, wherein the request from the second process includes a request to invalidate a runtime object in an application development environment.
- 13. The method of claim 12, wherein the requested invalidation includes accessing the resource to update a last source change time field of the runtime object.
- 14. The method of claim 12, wherein the requested invalidation includes accessing the resource to update a boolean field of the runtime object indicating validity of the runtime object.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is related to the subject matter of the following U.S. patent applications filed on even date: attorney docket no. 11884-400801 entitled “System and Method for Incremental Object Generation,” attorney docket no. 11884-403501 entitled “System and Method for Object Navigation Grammar Completion,” attorney docket no. 11884-403601 entitled “System and Method for Rule Based Object Navigation,” and attorney docket no. 11884-403801 entitled “System and Method for Generator State Object Validation.”