Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
fork()
main() {
int i = 2;
int ret_val;
while(i > 0) {
ret_val = fork();
if (ret_val==0) {
printf(“In child %d. \n”, i);
} else{
printf(“In parent %d. \n”, i);}
i=i-1;
}
}
}
✍: Guest
2009-04-19, 6190👍, 0💬
Popular Posts:
What will be printed as the result of the operation below: main() { int x=5; printf("%d,%d,%d\n",x,x. ..
How To Run Stored Procedures in Debug Mode? - Oracle DBA FAQ - Introduction to Oracle SQL Developer ...
What Happens If One Row Has Missing Columns? - XHTML 1.0 Tutorials - Understanding Tables and Table ...
What are secure and non-secure websites? A secure Website uses the Secure Socket Layer (SSL) protoco...
How do you override a defined macro? You can use the #undef preprocessor directive to undefine (over...