java code lamport s mutual exclusion algorithm
#1

[Q.1] It is assumed that in Lamport’s Distributed Algorithm that all sites have equal priority and
therefore each site broadcasts its request to access critical section to all other sites. In this
question you have to improvise Lamport’s Distributed Mutual Exclusion Algorithm by prioritizing
the sites. Each site is assigned a unique integer number ‘n’ (>=1 and <=K where K is the
number of sites in the system) which duly represents the priority as well as the ID of the
process. The priority of site decreases with the increase in the value of ‘n’ [i.e. priority value ‘1’
means highest, ‘2’ means second highest and so on]. The algorithm designed by you should
fulfill the following requirements:
a. When there are simultaneous requests for the critical section, for multiple sites, then the
higher priority sites should be given preference over the lower priority sites subject to the
condition that lower priority sites should not starve for the critical section.
b. Any site can enter the critical section only after making a request for critical section.
c. The algorithm should be deadlock free.
Design the algorithm to satisfy above requirements. Before writing the algorithm, you have to
mention which data structure you are going to use and what is the role of each. Your algorithm
should have the following four sections:
1) Initialization
2) Requesting Critical Section
3) Executing Critical Section
4) Releasing Critical Section
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: lamport java, mutual exclusion algorithm by dekker, c code for lamport algo for mutual exclusion, dual link failure resiliency through backup link mutual exclusion, exclusion, lamport s mutual exclusion algorithm in java, java code to implement lamport s law,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Messages In This Thread
java code lamport s mutual exclusion algorithm - by Guest - 29-03-2016, 11:14 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  simple java rmi chat application source code 2 20,093 20-07-2018, 12:08 PM
Last Post: Guest
  free download source code for online movie ticket booking in java 2 19,522 15-08-2017, 03:21 PM
Last Post: Morshed
  source code for rsa encryption and decryption in java 2 8,310 29-05-2017, 04:21 PM
Last Post: Meghna Jadhav
  image encryption and decryption using rsa algorithm in matlab 2 8,204 29-05-2017, 04:17 PM
Last Post: Priyanka Bidikar
  source code for task scheduling using genetic algorithm using java 2 8,824 11-04-2017, 08:31 PM
Last Post: Guest
  vhdl code for radix 2 modified booth algorithm 4 1,061 04-04-2017, 10:24 AM
Last Post: Garlapati nikitha
  secure chat using RSA algorithm karthik1218 2 2,620 14-10-2016, 02:48 PM
Last Post: info togel
  f5 algorithm steganography matlab code 2 900 04-10-2016, 03:00 AM
Last Post: [email protected]
  color image segmentation using jseg algorithm in matlab code 2 898 29-09-2016, 12:07 PM
Last Post: Guest
  source code for suspicious email detection in java Parvesh.2595 2 1,090 23-08-2016, 04:05 PM
Last Post: seminar report asees

Forum Jump: