[ask] tentang script fork

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
unotiti
Posts: 9
Joined: 14 Mar 2013, 16:11
Location: Indonesia
Contact:

[ask] tentang script fork

Postby unotiti » 30 Apr 2013, 12:24

gan ane tanya tentang fork :
kan ane ngetik script di terminal
int main(){
printf("Hello\n");
fork();
printf("Nama\n");
fork();
printf("Titi\n");
}

ntar munculnya :
Hello
Nama
Nama
Titi
Titi
Titi
Titi

tpi ntar kalau ane tambahin lagi :
fork();
printf("Tata\n");
dst.

ntar "Tata"nya nyisip diantara kata2 Hello, Nama, ma Titi, jdi gak nyetak dibawahnya.

Sebenarnya cara keja fork() itu kayak gimana ???
=makasih=
User avatar
abu_unaisah
Posts: 1621
Joined: 24 Nov 2011, 14:07

Re: [ask] tentang script fork

Postby abu_unaisah » 30 Apr 2013, 15:21

coba man fork

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: Bing [Bot] and 15 guests