İşletim Sistemleri (Bahar-2016) Hafta-3
#include<iostream> #include<unistd.h> #include<sys/types.h> using namespace std; int main() { pid_t pid; cout<<“Proc id:”<<getpid()<<endl; pid=fork(); if(pid==0) // cocuk { cout<<“BEN COCUK,
Okumaya devam et#include<iostream> #include<unistd.h> #include<sys/types.h> using namespace std; int main() { pid_t pid; cout<<“Proc id:”<<getpid()<<endl; pid=fork(); if(pid==0) // cocuk { cout<<“BEN COCUK,
Okumaya devam et#include <iostream> #include <unistd.h> using namespace std; int main() { int x; cout<<“pid:”<<getpid()<<endl; cout<<“Sayi Giriniz:”; cin>>x; cout<<“Sayi:”<<x<<endl; return 0;
Okumaya devam et
Son yorumlar