同步对象的伪代码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了同步对象的伪代码相关的知识,希望对你有一定的参考价值。

  1. pseudocode for sync object
  2.  
  3. take ref to container obj_l
  4. take ref to container obj_r
  5.  
  6. given a check for
  7.  
  8.  
  9. establish a pair
  10. give the pair a serial number obj_id
  11. this way we can at least tell if they *should* be the same
  12. associate a date (and maybe a checksum) with that
  13.  
  14.  
  15.  
  16. watch the filesystem of have the file system journal for changes to this
  17. set a marker for quick-sync
  18.  
  19.  
  20. when looking at remote items quick-sync will compare date listing/hashes
  21. if needed the checksum (hash function?) can be applied
  22. Also, a listing of obj_id(s) from meta data can determine if something is broken or altered
  23.  
  24.  
  25. routine to restore broken/altered pairs
  26. which is more recent?
  27. which is larger?

以上是关于同步对象的伪代码的主要内容,如果未能解决你的问题,请参考以下文章

CSS中的伪类和伪对象

SPFA算法的伪代码

用于查找文档中字符出现次数的伪代码

notepad++ 用户定义的伪代码语言

ruby Rails中基于游标的伪分区伪代码

写出一个缓存系统的伪代码001