Checkpoint synchronization: Difference between revisions

m
→‎{{header|J}}: consistent use of J's prompt
m (→‎{{header|J}}: add some spaces to make the rosettacode syntax highlighter happy)
m (→‎{{header|J}}: consistent use of J's prompt)
Line 1,607:
For example:
 
<lang J> {{for. y do. 0 T.'' end.}} 0>.4-1 T.'' NB. make sure we have some threads
dl ts=: 6!:30 NB. delaytimestamp
 
ts dl=: 6!:03 NB. timestamp delay
dl=: 6!:3 NB. delay
 
{{r=.EMPTY for. i.y do. dl 1[ r=.r,3}.ts'' end. r}} t. ''"0(3 5)
6,962

edits