June 10th, 2003, 02:18 AM
I need help to make a Local Host Lock Manger in Linux shell programming or C
You are required to design, implement and test logic for the local lock manager apart from the exceptions noted above, and as further specified in the following notes.
At the level of lock managers, locks are identified by positive integers.
The timeout imposed for the TRYLOCK message is 5 secs.
Usually lock daemons would communicate using sockets. For this assignment you may use messaging procedures which employ message queues.
Local lock manager logic must allow for arrival in any order of lock requests from local applications and replies from the master lock manager to its own messages.
A local lock manager has to service multiple local applications; so it can't block on receiving a lock granted response from the master lock manager.
A local lock manager may also receive a message from a newly elected master telling it to resubmit all information regarding locks currently in use and outstanding requests.
Observe that testing of local lock manager logic does not require setting up of multiple instances: You will however need to set up a framework which appears like the rest of the system would.
June 10th, 2003, 09:58 AM
Typically it is frowned upon to come to a forum to get your homework assignments done. I would suggest that you consult your teacher and classmates for something along these lines.
Also, in general, we can help answer problems, but we won't write the program for you. If you get stuck at a specific place, then ask a question to get the help you need to get over this problem.
If you want someone to write the program for you then you should post in the "Project Help Wanted" forum instead.