TD2 I.5 first working version of Thread
Add semaphore to PutChar and GetChar
This commit is contained in:
parent
c4a2d25163
commit
6bd3e1338f
8 changed files with 95 additions and 4 deletions
13
code/test/threadcreate.c
Normal file
13
code/test/threadcreate.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#ifdef CHANGED
|
||||
#include "syscall.h"
|
||||
|
||||
void f(int c) {
|
||||
PutString("Thead!");
|
||||
}
|
||||
|
||||
int main(){
|
||||
//int i;
|
||||
ThreadCreate(f, 66);
|
||||
PutString("end of main()\n");
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue