

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Operating System Kernels; Subject: Computer Science and Engineering ; University: University of Nebraska - Lincoln; Term: Fall 2001;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


shared int x; shared int x; x = 10; x = 10; while (1) { while ( 1 ) { x = x - 1; x = x - 1; x = x + 1; x = x + 1; if (x != 10) if (x!=10) printf(‘‘x is %d’’,x); printf(‘‘x is %d’’,x); } } } } } }
LD R0,X /* load R0 from memory location x / INCR R0 / increment R0 / STO R0,X / store the incremented value back in X */