Computing.Net > Forums > Programming > Helphelp help for a Local Host Lock

Helphelp help for a Local Host Lock

Reply to Message Icon

Original Message
Name: tito
Date: June 3, 2003 at 05:07:30 Pacific
Subject: Helphelp help for a Local Host Lock
OS: XP
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.



Report Offensive Message For Removal








Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Helphelp help for a Local Host Lock

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge