Method, System and computer Program for Concurrent File Update
First Claim
1. A method for updating a shared resource in a data processing system by a first process and a second process in mutual exclusion, the method including the steps of:
- the first process accessing the shared resource for applying first updates, the second process notifying a request to the first process for applying at least one second update to the shared resource, making a copy of the shared resource in response to the request, logging an indication of each first update, applying the at least one second update to a selected resource between the shared resource and the copy of the shared resource, applying each logged first update to the selected resource in response to the completion of the application of the at least one second update, and causing the first process to access the selected resource.
1 Assignment
0 Petitions
Accused Products
Abstract
A solution is proposed in a scheduler for updating a control file (220) storing a workload plan (defining a sequence of jobs to be executed during a production day). A handler (225) has exclusive write access to the control file (for updating information relating to the state of the jobs during execution of the plan). A planner (215) that needs to write a new plan into the control file (for the next production day) notifies the handler. In response thereto, the handler makes a copy (320) of the control file for use by the planner and starts logging (335) any update that it performs on the (original) control file. Once the planner completes its work, the handler applies the logged updates to the copy of the control file (as updated by the planner). The handler can now restart working on the copy of the control file, which then replaces its original version.
-
Citations
15 Claims
-
1. A method for updating a shared resource in a data processing system by a first process and a second process in mutual exclusion, the method including the steps of:
-
the first process accessing the shared resource for applying first updates, the second process notifying a request to the first process for applying at least one second update to the shared resource, making a copy of the shared resource in response to the request, logging an indication of each first update, applying the at least one second update to a selected resource between the shared resource and the copy of the shared resource, applying each logged first update to the selected resource in response to the completion of the application of the at least one second update, and causing the first process to access the selected resource. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. (canceled)
-
10. (canceled)
-
11. A computer program product a computer-usable medium a computer program, the computer program when executed on a data processing system causing the system to perform a method for updating a shared resource by a first process and a second process in mutual exclusion, the method including the steps of:
-
the first process accessing the shared resource for applying first updates, the second process notifying a request to the first process for applying at least one second update to the shared resource, making a copy of the shared resource in response to the request, logging an indication of each first update, applying the at least one second update to a selected resource between the shared resource and the copy of the shared resource, applying each logged first update to the selected resource in response to the completion of the application of the at least one second update, and causing the first process to access the selected resource.
-
-
12. A data processing system including a shared resource, a first software module for implementing a first process and a second software module for implementing a second process for updating the shared resource in mutual exclusion, wherein the system includes:
-
means for causing the first process to access the shared resource for applying first updates, means for causing the second process to notify a request to the first process for applying at least one second update to the shared resource, means for making a copy of the shared resource in response to the request, means for logging an indication of each first update, means for applying the at least one second update to a selected resource between the shared resource and the copy of the shared resource, means for applying each logged first update to the selected resource in response to the completion of the application of the at least one second update, and means causing the first process to access the selected resource. - View Dependent Claims (13, 14, 15)
-
Specification