A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot//simgrid/simgrid
[simgrid.git]
/
examples
/
lua
/
SimSplay
/
splay_school.lua
1
dofile 'sim_splay.lua'
2
3
function SPLAYschool()
4
log:print("My ip is :" ..job.me.ip())
5
event.sleep(5)
6
rpc.call(job.nodes[3],{"call_me","Helloooooow"})
7
event.sleep(5)
8
os.exit()
9
end
10
11
function call_me(position)
12
log:print("I received an RPC from node "..position);
13
end
14
15
event.thread("SPLAYschool")
16
start.loop()
17
18
19