-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vivek Anand T Kallampally
committed
Mar 29, 2012
1 parent
e90ac9d
commit c055f87
Showing
8 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "syscall.h" | ||
void main() | ||
{ | ||
int fd; | ||
Print("Hello World\n"); | ||
fd=Exec("./test/open"); | ||
Print("Hello World after\n"); | ||
Halt(); // Optional. Just print stats | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "syscall.h" | ||
void p() | ||
{ | ||
int i=0; | ||
while(i++ < 10) | ||
Print("Hi"); | ||
Exit(0); | ||
} | ||
void func() | ||
{ | ||
Print("****hi****\n"); | ||
Fork(p); | ||
Print("###############Hey###############\n"); | ||
Exit(0); | ||
} | ||
void main() | ||
{ | ||
int i=0; | ||
Print("Hello\n"); | ||
Fork(func); | ||
// Fork(p); | ||
// Fork(func); | ||
// Join(i); | ||
Print("hello after fork\n"); | ||
//Join(1); | ||
//while(i++<10000); | ||
Halt(); | ||
} |
Binary file not shown.
Binary file not shown.