next up previous
Next: Resumo Up: Atomicidade em Linguagens de Previous: Atomicidade em Linguagens de

Quais números este programa pode imprimir?

 
int n;

void soma100(void) tex2html_wrap_inline710

int i;

for(i=0; i <= 100; i++) tex2html_wrap_inline710

LDA n; ADD 1; STA n;

tex2html_wrap_inline714

tex2html_wrap_inline714

void main(void) tex2html_wrap_inline710

n = 0;

cobegin

P1:: soma100();

tex2html_wrap_inline702

P2:: soma100();

coend;

printf(n)

tex2html_wrap_inline714



Osvaldo Sergio F. de Carvalho
Wed Mar 19 14:56:39 EST 1997