Checkpoint synchronization: Difference between revisions

m
→‎{{header|J}}: add some spaces to make the rosettacode syntax highlighter happy
m (→‎{{header|J}}: add some spaces to make the rosettacode syntax highlighter happy)
Line 1,607:
For example:
 
<lang J>{{for. y do. 0 T.'' end.}} 0>.4-1 T.'' NB. make sure we have some threads
 
ts=: 6!:0 NB. timestamp
dl=: 6!:3 NB. delay
 
{{r=.EMPTY for. i.y do. dl 1[ r=.r,3}.ts'' end. r}} t. ''"0(3 5)
┌────────────┬────────────┐
│12 53 53.569│12 53 53.569│
6,962

edits