- Timestamp:
- Mar 14, 2020, 6:02:11 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6791213
- Parents:
- 852a2f06
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/concurrency/Paper.tex
r852a2f06 r9b4483a0 248 248 } 249 249 250 \new box\myboxA251 \new box\myboxB252 \new box\myboxC253 \new box\myboxD250 \newsavebox{\myboxA} 251 \newsavebox{\myboxB} 252 \newsavebox{\myboxC} 253 \newsavebox{\myboxD} 254 254 255 255 \title{\texorpdfstring{Advanced Control-flow and Concurrency in \protect\CFA}{Advanced Control-flow in Cforall}} … … 2967 2967 \lstset{language=CFA,moredelim=**[is][\color{red}]{@}{@},deletedelim=**[is][]{`}{`}} 2968 2968 \begin{cfa}[aboveskip=0pt,belowskip=0pt] 2969 @coroutine@ C {} c;2970 void main( C & ) { while() { @suspend;@ } }2969 @coroutine@ C {}; 2970 void main( C & ) { for () { @suspend;@ } } 2971 2971 int main() { // coroutine test 2972 C c; 2972 2973 BENCH( for ( N ) { @resume( c );@ } ) 2973 2974 sout | result; … … 2989 2990 \multicolumn{1}{@{}c}{} & \multicolumn{1}{c}{Median} &\multicolumn{1}{c}{Average} & \multicolumn{1}{c@{}}{Std Dev} \\ 2990 2991 C function & 1.8 & 1.8 & 0.0 \\ 2991 \CFA generator & 1.8 & 1.8 & 0.1\\2992 \CFA generator & 1.8 & 2.0 & 0.3 \\ 2992 2993 \CFA coroutine & 32.5 & 32.9 & 0.8 \\ 2993 2994 \CFA thread & 93.8 & 93.6 & 2.2 \\
Note: See TracChangeset
for help on using the changeset viewer.