Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads WEB Code JSP/Java

DLogicalClocks

  • Category : JSP/Java
  • Tags :
  • Update : 2012-11-26
  • Size : 5kb
  • Downloaded :0次
  • Author :A*****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
Distributed Logical clocks. Code will spawn n (distributed) processes Pi, 0 ≤ i < n, each one looping forever. Each loop iteration is a loop interval and its duration can be set to 1 second. In every loop interval Pi does the following: − If there is a message m pending to be received it receives m − Otherwise o It does an internal action with probability 0.80 o It sends a message to process Pj, 0 ≤ j < n and j ≠ i with probability 0.20. The message gets delayed at its source for a random amount of time < 2 sec to simulate network delay. − It calculates and prints its logical clock value along with the action it takes. Note: several messages may arrive in a process within a loop interval. In such a case they will be queued and delivered to the process in subsequent loop intervals.
Packet file list
(Preview for download)
src\Configuration\config.cfg
...\IncMsgHandler.java
...\InitThread.java
...\Message.java
...\OutMsgHandler.java
...\ProcLClock.java
...\Queue.java
...\SPair.java
...\Configuration
src
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.