A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
abaf7c97b3b704b0e3c16c8a11181f8b28c8103f
[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