Computing.Net > Forums > Programming > Need help to make a Local Host Lock

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Need help to make a Local Host Lock

Reply to Message Icon

Name: Money
Date: June 9, 2003 at 23:09:12 Pacific
OS: Whatever
CPU/Ram: 1.4Mhz 128MB\
Comment:

I need to make a Local host Lock Manager
in C or Unix shell. Please help me.

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.

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.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


newbie C help!!! Viewing letters in hex va...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Need help to make a Local Host Lock

Helphelp help for a Local Host Lock www.computing.net/answers/programming/helphelp-help-for-a-local-host-lock/6691.html

Need help to make a simple batch file www.computing.net/answers/programming/need-help-to-make-a-simple-batch-file/20286.html

I need help in c plzzz www.computing.net/answers/programming/i-need-help-in-c-plzzz/529.html