İş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| P | S | Ç | P | C | C | P |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |

Son yorumlar