Changeset 4541b09
- Timestamp:
- Apr 4, 2023, 12:05:46 PM (20 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- bb7422a
- Parents:
- 9586d22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/text/CFA_concurrency.tex
r9586d22 r4541b09 19 19 20 20 int main() { 21 processor p[2];$\C{// add 2 processors = 3 total with starting processor}$21 @processor@ p[2]; $\C{// add 2 processors = 3 total with starting processor}$ 22 22 { 23 23 my_thread t[2], * t3 = new(); $\C{// create 3 user threads, running in main routine}$ 24 24 ... // execute concurrently 25 25 delete( t3 ); $\C{// wait for thread to end and deallocate}$ 26 } // wait sfor threads to end and deallocate26 } // wait for threads to end and deallocate 27 27 } 28 28 \end{cfa}
Note: See TracChangeset
for help on using the changeset viewer.