Skip to content

Commit

Permalink
Merge pull request #1 from joaovitormarianocorreia/2.0
Browse files Browse the repository at this point in the history
update
  • Loading branch information
joaovmcorreia authored Aug 18, 2021
2 parents 0aef350 + ce78f8a commit 2c5f0fb
Show file tree
Hide file tree
Showing 17 changed files with 296 additions and 217 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"TICTAC.C": "cpp",
"SYSTEM.C": "cpp",
"NUCLEO.C": "cpp",
"ESCALA.C": "cpp"
"ESCALA.C": "cpp",
"EXEMPLO_NUCLEO.C": "cpp",
"EXEMPLO1.C": "cpp"
}
}
30 changes: 30 additions & 0 deletions EXEMPLO1.BAK
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include <NUCLEO.H>
#include <stdio.h>

void far processo1(){
int i = 0;
while (i < 10000){
printf("1");
i++;
}
termina_processo();
}

void far processo2(){
int i = 0;
while (i < 10000){
printf("2");
i++;
}
termina_processo();
}




int main (){
cria_processo("p1", processo1);
cria_processo("p2", processo2);

dispara_sistema();
}
37 changes: 37 additions & 0 deletions EXEMPLO1.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#include <NUCLEO.H>
#include <stdio.h>

void far processo1(){
int i = 0;
while (i < 10000){
printf("1");
i++;
}
termina_processo();
}

void far processo2(){
int i = 0;
while (i < 10000){
printf("2");
i++;
}
termina_processo();
}

void far processo3(){
int i = 0;
while (i < 10000){
printf("3");
i++;
}
termina_processo();
}


int main (){
cria_processo("p1", processo1);
cria_processo("p2", processo2);
cria_processo("p3", processo3);
dispara_sistema();
}
Binary file added EXEMPLO1.EXE
Binary file not shown.
Binary file added EXEMPLO1.OBJ
Binary file not shown.
5 changes: 5 additions & 0 deletions EXEMPLO1.PRJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exemplo1.c (nucleo.h nucleo.obj)
nucleo.obj

(system.h system.obj)
system.obj
1 change: 1 addition & 0 deletions EXEMPLO1.TXT

Large diffs are not rendered by default.

Loading

0 comments on commit 2c5f0fb

Please sign in to comment.