Übung 5
This commit is contained in:
11
Assets/Betriebssysteme_uebung/u2-anlage/u2-a1-anlage/p1.c
Normal file
11
Assets/Betriebssysteme_uebung/u2-anlage/u2-a1-anlage/p1.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("%d: code before forking - executed once only\n", getpid());
|
||||
|
||||
fork();
|
||||
|
||||
printf("%d: code after forking - executed by each process\n", getpid());
|
||||
}
|
||||
Reference in New Issue
Block a user