simple.sc

来自「基于chord算法的p2p文件系统。A p2p file system base」· SC 代码 · 共 24 行

SC
24
字号
# Usage example:# >../traffic_gen simple.sc 11 >! simple.ev# >../sim simple.ev 10## create a network consisting of three nodes# a new node joins the system each 1 sec on the averageevents 3 1000 1 0 0 0 0# wait 10 sec for the network to stabilizewait 10000# insert 5 documents in the networkevents 5 1000 0 0 0 1 0# generate a total of 10 events; each event is a document insertion# with probability 0.5 and a document lookup with probability 0.5 events 10 1000 0 0 0 10 10# wait 1 sec to complete all operations wait 1000# end the simulationexit

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?